I have a few Session scoped and few Request scoped objects - To Unit test Request scoped object I used ServletScopes.scopeRequest as below
ImmutableMap<Key<?>, Object> imap = ImmutableMap.<Key<?>, Object> of( Key.get(ServerArtifactProvider.class), new MockServerArtifactProvider(), Key.get(ServiceCallContextStack.class), callStack, Key.get(CallLifeCycleManager.class), new CallLifeCycleManagerImpl()); MockInjectionsTester callable = injector.getInstance(MockInjectionsTester. class); Callable<Result> result = ServletScopes.scopeRequest(callable, imap); But now I am trying to test Session scoped objects within my MockTester class. Any pointers ? -- You received this message because you are subscribed to the Google Groups "google-guice" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/d/optout.
