Back to list
Views:   4.6K
Replies:  1
Archived

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
Reply 1
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


Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas.      Vsn 1.3.0