Hello, how could I unit test a controller which has input with multipart/form-data?
Currently getting the controller instance is really straigth forward with extends WithApplication and then app.injecter().instanceOf(Controller.class);
However that only works with GET requests without any body.
However then things gets wierd, we need to statically import route from import static play.test.Helpers.*;
so we have the following:
WSroute(fakeRequest(POST, "url")) now we could add something to fakeRequest, however there is no bodyAsMultipart method (all other methods, Xml, Json, Text, etc are there) do we really need to manually set it?