Home
last modified time | relevance | path

Searched refs:CustomScoped (Results 1 – 2 of 2) sorted by relevance

/external/guice/core/test/com/google/inject/
DScopesTest.java225 bind(B.class).in(CustomScoped.class); in testScopeUsedButNotBound()
232 "1) No scope is bound to " + CustomScoped.class.getName(), in testScopeUsedButNotBound()
234 "2) No scope is bound to " + CustomScoped.class.getName(), in testScopeUsedButNotBound()
241 @CustomScoped
279 bindScope(CustomScoped.class, scope); in testUnscopedProviderWorksOutsideOfRequestedScope()
280 bind(List.class).to(ArrayList.class).in(CustomScoped.class); in testUnscopedProviderWorksOutsideOfRequestedScope()
345 bindScope(CustomScoped.class, Scopes.NO_SCOPE); in configure()
350 bindScope(CustomScoped.class, Scopes.SINGLETON); in configure()
360 "1) Scope Scopes.NO_SCOPE is already bound to " + CustomScoped.class.getName() in testBindScopeTooManyTimes()
372 bindScope(CustomScoped.class, Scopes.SINGLETON); in testBindDuplicateScope()
[all …]
/external/guice/extensions/servlet/test/com/google/inject/servlet/
DServletScopesTest.java133 bind(h).toProvider(Providers.of("h")).in(CustomScoped.class); in testIsRequestScopedNegative()
134 bindScope(CustomScoped.class, Scopes.NO_SCOPE); in testIsRequestScopedNegative()
138 bind(i).toProvider(Providers.of("i")).in(CustomScoped.class); in testIsRequestScopedNegative()
146 @CustomScoped in testIsRequestScopedNegative()
185 private @interface CustomScoped {} annotation in ServletScopesTest