How to test MVC project in Spark 4.5
I noticed that in the MVC project of the Spark example, none of the controllers are injectable. How can I write tests against them assuming I do not need a REST layer.
I noticed that your test cases are only against the REST api, not against the MVC project
Parity Bit, Aug 29, 2013
It is up to you, because the controllers are not part of the Spark platform.
Simply create the necessary controllers (injectable with a mock Repository API) and you will be ready to run your tests in your preferred testing environment.
Hope this helps.
Jack Poorte, Aug 29, 2013