Searched refs:CustomScoped (Results 1 – 2 of 2) sorted by relevance
244 bind(B.class).in(CustomScoped.class); in testScopeUsedButNotBound()252 "1) No scope is bound to " + CustomScoped.class.getName(), in testScopeUsedButNotBound()255 "2) No scope is bound to " + CustomScoped.class.getName(), in testScopeUsedButNotBound()262 @CustomScoped303 bindScope(CustomScoped.class, scope); in testUnscopedProviderWorksOutsideOfRequestedScope()304 bind(List.class).to(ArrayList.class).in(CustomScoped.class); in testUnscopedProviderWorksOutsideOfRequestedScope()383 bindScope(CustomScoped.class, Scopes.NO_SCOPE); in configure()390 bindScope(CustomScoped.class, Scopes.SINGLETON); in configure()402 + CustomScoped.class.getName() in testBindScopeTooManyTimes()420 bindScope(CustomScoped.class, Scopes.SINGLETON); in testBindDuplicateScope()[all …]
134 bind(h).toProvider(Providers.of("h")).in(CustomScoped.class); in testIsRequestScopedNegative()135 bindScope(CustomScoped.class, Scopes.NO_SCOPE); in testIsRequestScopedNegative()140 bind(i).toProvider(Providers.of("i")).in(CustomScoped.class); in testIsRequestScopedNegative()148 @CustomScoped in testIsRequestScopedNegative()187 private @interface CustomScoped {} annotation in ServletScopesTest