Write test on page response

2017-05-06 Thread Yurij Shinkarev
Hello all. I have page, this page return StreamResponse (json). So, I have in code: StreamResponse onActivate() { } I want write a test for this page. I can send PUT/GET/POST/DELETE request with different parameters. Server return me some result. I want test this results. How I can did it?

Contribution to ApplicationStateManager not called on ApplicationModule

2017-05-06 Thread yazmin georgina quintal
I have this code con ApplicationModule (T.5.4.3), but I do not see my contribution method being called:     @Contribute(value = ApplicationStateManager.class)     public static void provideStateCreators(MappedConfiguration configuration) {         System.out.println("provideStateCreators");