When unit testing MVP applications, the recommended practice seems to be you should test presenters and not views. Services fall into a similar "don't unit test" category because they'll need to connect to the server-side, which won't be running in a unit testing environment.
https://dzone.com/articles/building-gwt-applications-mvp
Don't test the model either as it's just a glorified bag of getters and setters.
Saturday, August 22, 2015
Sunday, August 2, 2015
AngularJS is not MVC
Your template drives your application. It's treated as a DSL. You write AngularJS components, and AngularJS will take care of pulling them in and making them available at the right time based on the structure of your template. This is very different to a standard MVC pattern, where the template is just for output.
It's more similar to XSLT than Ruby on Rails for example.
DI Required for Declarative Transactions
[D]ependency injection is the only way that declarative transactions work. You will not get a transactional service if you use the new operator such as new BookService()http://grails.github.io/grails-doc/2.3.11/guide/services.html
Subscribe to:
Posts (Atom)