File upload in Unit testing

0
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
asked
1 answers
0

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.

answered