I have a class that uses Active Web - HttpSupport View - in a service class. I know that is wrong but I cannot change right now.
So, when I am running a test I receive a null pointer at this point:
Because request context.getValues()
is null.
How I solve it? Is it possible to mock or anything?
Problems: RequestContext -> private constructor I am extending AppController -> HttpSupport
My env uses a @Guice(modules = TestModule.class)
strategy to bind classes in test context.