File upload in Unit testing

Hi all, I want to do unit testing on upload microflow, but do not want to upload any file. Instead want to have some dummy file created itself in the test microflow so that I can proceed with the testing.  Kindly guide me on this.   Thanks
1 answers

You can put a known test file into your “resources” folder, then use something like GetFileContentsFromResource in Community Commons to load it into a FileDocument ready for your Test.

Hope this helps.