/external/guice/core/test/com/google/inject/ |
D | ParentInjectorTest.java | 42 Injector parent = Guice.createInjector(bindsA); in testParentAndChildCannotShareExplicitBindings() 54 Injector parent = Guice.createInjector(); in testParentJitBindingWontClobberChildBinding() 70 Injector parent = Guice.createInjector(); in testChildCannotBindToAParentJitBinding() 82 Injector parent = Guice.createInjector(); in testJustInTimeBindingsAreSharedWithParentIfPossible() 83 Injector child = parent.createChildInjector(); in testJustInTimeBindingsAreSharedWithParentIfPossible() 86 Injector anotherChild = parent.createChildInjector(); in testJustInTimeBindingsAreSharedWithParentIfPossible() 89 Injector grandchild = child.createChildInjector(); in testJustInTimeBindingsAreSharedWithParentIfPossible() 94 Injector parent = Guice.createInjector(bindsB); in testBindingsInherited() 95 Injector child = parent.createChildInjector(); in testBindingsInherited() 100 Injector top = Guice.createInjector(bindsA); in testGetParent() [all …]
|
D | JitBindingsTest.java | 58 Injector injector = Guice.createInjector(new AbstractModule() { in testLinkedBindingWorks() 74 Injector injector = Guice.createInjector(new AbstractModule() { in testMoreBasicsWork() 92 Injector injector = Guice.createInjector(new AbstractModule() { in testLinkedEagerSingleton() 108 Injector injector = Guice.createInjector(new AbstractModule() { in testBasicsWithEagerSingleton() 126 Injector injector = Guice.createInjector(new AbstractModule() { in testLinkedToScoped() 142 Injector injector = Guice.createInjector(new AbstractModule() { in testBasicsWithScoped() 177 Injector injector = Guice.createInjector(new AbstractModule() { in testLinkedProviderBindingWorks() 256 Injector injector = Guice.createInjector(new AbstractModule() { in testImplementedBy() 268 Injector injector = Guice.createInjector(new AbstractModule() { in testImplementedBySomethingThatIsAnnotated() 280 Injector injector = Guice.createInjector(new AbstractModule() { in testProvidedBy() [all …]
|
D | BindingTest.java | 127 Injector injector = Guice.createInjector(new AbstractModule() { in testScopeIsAppliedToKeyNotTarget() 223 @Inject TooManyConstructors(Injector i) {} in TooManyConstructors() 230 Injector injector = Guice.createInjector(new AbstractModule() { in testToConstructorBinding() 245 Injector injector = Guice.createInjector(new AbstractModule() { in testToConstructorBindingsOnParameterizedTypes() 248 bind(i).toConstructor(constructor, new TypeLiteral<C<Injector>>() {}); in testToConstructorBindingsOnParameterizedTypes() 257 C<Injector> two = (C<Injector>) injector.getInstance(i); in testToConstructorBindingsOnParameterizedTypes() 293 Injector injector = Guice.createInjector(new AbstractModule() { in testToConstructorAndMethodInterceptors() 310 Injector injector = Guice.createInjector(new AbstractModule() { in testInaccessibleConstructor() 328 Injector injector = Guice.createInjector(new AbstractModule() { in testToConstructorAndScopes() 344 public void assertDistinct(Injector injector, int expectedCount, Key<?>... keys) { in assertDistinct() [all …]
|
D | ImplicitBindingTest.java | 34 Injector injector = Guice.createInjector(); in testCircularDependency() 52 Injector injector = Guice.createInjector(); in testDefaultImplementation() 71 Injector injector = Guice.createInjector(); in testDefaultProvider() 77 Injector injector = Guice.createInjector(new AbstractModule() { in testBindingOverridesImplementedBy() 122 Injector injector = Guice.createInjector(new AbstractModule() { in testCircularJitBindingsLeaveNoResidue() 158 private void assertFailure(Injector injector, Class clazz) { in assertFailure() 246 Injector parentSetupRootInjector = Guice.createInjector(testModule); in testInstancesRequestingProvidersForThemselvesWithChildInjectors() 247 Injector parentSetupChildInjector = parentSetupRootInjector.createChildInjector(); in testInstancesRequestingProvidersForThemselvesWithChildInjectors() 254 Injector childSetupRootInjector = Guice.createInjector(); in testInstancesRequestingProvidersForThemselvesWithChildInjectors() 255 Injector childSetupChildInjector = childSetupRootInjector.createChildInjector(testModule); in testInstancesRequestingProvidersForThemselvesWithChildInjectors() [all …]
|
D | MethodInterceptionTest.java | 68 Injector injector = Guice.createInjector(new AbstractModule() { in testSharedProxyClasses() 75 Injector childOne = injector.createChildInjector(new AbstractModule() { in testSharedProxyClasses() 85 Injector childTwo = injector.createChildInjector(new AbstractModule() { in testSharedProxyClasses() 97 Injector injector2 = Guice.createInjector(new AbstractModule() { in testSharedProxyClasses() 112 Injector injector = Guice.createInjector(new AbstractModule() { in testGetThis() 129 Injector injector = Guice.createInjector(new AbstractModule() { in testInterceptingFinalClass() 152 Injector injector = Guice.createInjector(new AbstractModule() { in testSpiAccessToInterceptors() 180 Injector injector = Guice.createInjector(new AbstractModule() { in testInterceptedMethodThrows() 204 Injector injector = Guice.createInjector(new AbstractModule() { in testNotInterceptedMethodsInInterceptedClassDontAddFrames() 257 Injector injector = Guice.createInjector(new AbstractModule() { in testInterceptingNonBridgeWorks() [all …]
|
D | InjectorTest.java | 51 Injector injector = Guice.createInjector(Stage.TOOL); in testToStringDoesNotInfinitelyRecurse() 53 injector.getBinding(Injector.class).toString(); in testToStringDoesNotInfinitelyRecurse() 60 Injector injector = Guice.createInjector(new AbstractModule() { in testProviderMethods() 80 Injector injector = createFooInjector(); in testInjection() 93 private Injector createFooInjector() throws CreationException { in createFooInjector() 105 Injector injector = createFooInjector(); 114 Injector injector = Guice.createInjector(new AbstractModule() { 125 Injector injector = Guice.createInjector(); 251 Injector injector = Guice.createInjector(new AbstractModule() { 279 Injector injector = Guice.createInjector(new AbstractModule() { [all …]
|
D | PrivateModuleTest.java | 44 Injector injector = Guice.createInjector(new AbstractModule() { in testBasicUsage() 78 Injector injector = Guice.createInjector(new AbstractModule() { in testWithoutPrivateModules() 130 Injector injector = Guice.createInjector(new AbstractModule() { in testPrivateModulesAndProvidesMethods() 258 Injector injector = Guice.createInjector(new PrivateModule() { in testNestedPrivateInjectors() 275 Injector injector = Guice.createInjector(new PrivateModule() { in testInstallingRegularModulesFromPrivateModules() 291 Injector injector = Guice.createInjector(new PrivateModule() { in testNestedPrivateModulesWithSomeKeysUnexposed() 327 Injector injector = Guice.createInjector( in testDependenciesBetweenPrivateAndPublic() 356 Injector injector = Guice.createInjector( in testDependenciesBetweenPrivateAndPublicWithPublicEagerSingleton() 393 Injector injector = Guice.createInjector( in testDependenciesBetweenPrivateAndPublicWithPrivateEagerSingleton() 438 Injector injector = Guice.createInjector(new PrivateModule() { in testSpiAccess() [all …]
|
D | EagerSingletonTest.java | 40 @Inject void inject(Injector injector) { in testJustInTimeEagerSingletons() 54 Injector injector = Guice.createInjector(Stage.PRODUCTION); in testJustInTimeSingletonsAreNotEager() 60 Injector parent = Guice.createInjector(Stage.PRODUCTION); in testChildEagerSingletons() 75 @Inject A(Injector injector) { in A()
|
/external/guice/core/test/com/google/inject/spi/ |
D | ModuleAnnotatedMethodScannerTest.java | 32 import com.google.inject.Injector; 63 Injector injector = Guice.createInjector(module, NamedMunger.module()); in testScanning() 88 Injector injector = Guice.createInjector(module, NamedMunger.module()); in testSkipSources() 102 Injector injector = Guice.createInjector(module, NamedMunger.module()); in testWithSource() 165 private void assertMungedBinding(Injector injector, Class<?> clazz, String originalName, 218 Injector parent = Guice.createInjector(NamedMunger.module()); 219 Injector child = parent.createChildInjector(new AbstractModule() { 238 Injector parent = Guice.createInjector(); 239 Injector child = parent.createChildInjector(NamedMunger.module(), module); 243 Injector sibling = parent.createChildInjector(module); [all …]
|
/external/guice/extensions/servlet/test/com/google/inject/servlet/ |
D | MultipleServletInjectorsTest.java | 27 import com.google.inject.Injector; 43 private Injector injectorOne; 44 private Injector injectorTwo; 50 fakeContextOne.setAttribute(eq(INJECTOR_NAME), isA(Injector.class)); in testTwoInjectors() 53 fakeContextTwo.setAttribute(eq(INJECTOR_NAME), isA(Injector.class)); in testTwoInjectors() 62 protected Injector getInjector() { in testTwoInjectors() 83 protected Injector getInjector() { in testTwoInjectors()
|
D | FilterDefinitionTest.java | 12 import com.google.inject.Injector; 41 Injector injector = createMock(Injector.class); in testFilterInitAndConfig() 92 Injector injector = createMock(Injector.class); in testFilterCreateDispatchDestroy() 147 Injector injector = createMock(Injector.class); in testFilterCreateDispatchDestroySupressChain() 213 Injector injector = createMock(Injector.class); in testGetFilterIfMatching() 248 Injector injector = createMock(Injector.class); in testGetFilterIfMatchingNotMatching()
|
/external/guice/extensions/testlib/test/com/google/inject/testing/fieldbinder/ |
D | BoundFieldModuleTest.java | 27 import com.google.inject.Injector; 61 Injector injector = Guice.createInjector(module); in testBindingOnePrivate() 73 Injector injector = Guice.createInjector(module); in testBindingOnePublic() 96 Injector injector = Guice.createInjector(module); in testSuperTypeBinding() 110 Injector injector = Guice.createInjector(module); in testBindingTwo() 123 Injector injector = Guice.createInjector(module); in testBindingSuperType() 135 Injector injector = Guice.createInjector(module); in testBindingSuperTypeAccessSubType() 184 Injector injector = Guice.createInjector(module); in testBindingWithBindingAnnotation() 207 Injector injector = Guice.createInjector(module); in testBindingWithQualifier() 229 Injector injector = Guice.createInjector(module); in testCanReuseBindingAnnotationsWithDifferentValues() [all …]
|
/external/guice/core/test/com/google/inject/internal/ |
D | WeakKeySetTest.java | 33 import com.google.inject.Injector; 337 Injector parentInjector = Guice.createInjector(new AbstractModule() { in testWeakKeySet_integration() 344 Injector childInjector = parentInjector.createChildInjector(new AbstractModule() { in testWeakKeySet_integration() 349 WeakReference<Injector> weakRef = new WeakReference<Injector>(childInjector); in testWeakKeySet_integration() 359 Injector parentInjector = Guice.createInjector(new AbstractModule() { in testWeakKeySet_integration_multipleChildren() 367 Injector childInjector1 = parentInjector.createChildInjector(new AbstractModule() { in testWeakKeySet_integration_multipleChildren() 372 WeakReference<Injector> weakRef1 = new WeakReference<Injector>(childInjector1); in testWeakKeySet_integration_multipleChildren() 376 Injector childInjector2 = parentInjector.createChildInjector(new AbstractModule() { in testWeakKeySet_integration_multipleChildren() 381 WeakReference<Injector> weakRef2 = new WeakReference<Injector>(childInjector2); in testWeakKeySet_integration_multipleChildren() 399 Injector parentInjector = Guice.createInjector(new AbstractModule() { in testWeakKeySet_integration_multipleChildren_overlappingKeys() [all …]
|
/external/guice/jdk8-tests/test/com/google/inject/jdk8/ |
D | Java8LanguageFeatureBindingTest.java | 23 import com.google.inject.Injector; 49 Injector injector = Guice.createInjector(new AbstractModule() { in testBinding_lambdaToInterface() 62 Injector injector = Guice.createInjector(new AbstractModule() { in testProviderMethod_returningLambda() 77 Injector injector = Guice.createInjector(new AbstractModule() { in testProviderMethod_containingLambda_throwingException() 113 Injector injector = Guice.createInjector(new AbstractModule() { in testProvider_usingJdk8Features() 141 Injector injector = Guice.createInjector(new AbstractModule() { in testBinding_toProvider_lambda() 154 Injector injector = Guice.createInjector(new AbstractModule() { in testBinding_toProvider_methodReference()
|
D | DefaultMethodInterceptionTest.java | 25 import com.google.inject.Injector; 79 Injector injector = Guice.createInjector(new AbstractModule() { in testInterceptedDefaultMethod() 95 Injector injector = Guice.createInjector(new AbstractModule() { in testInterceptedDefaultMethod_calledByAnotherMethod() 123 Injector injector = Guice.createInjector(new AbstractModule() { in testInterceptedDefaultMethod_whenParentClassDefinesNonInterceptedMethod() 158 Injector injector = Guice.createInjector(new AbstractModule() { in testInterceptedDefaultMethod_whenParentClassDefinesInterceptedMethod() 191 Injector injector = Guice.createInjector(new AbstractModule() { in testInterception_ofAllMethodsOnType() 208 Injector injector = Guice.createInjector(new AbstractModule() { in testInterception_ofAllMethodsOnType_interceptsInheritedDefaultMethod()
|
/external/guice/core/src/com/google/inject/ |
D | Guice.java | 61 public static Injector createInjector(Module... modules) { in createInjector() 72 public static Injector createInjector(Iterable<? extends Module> modules) { in createInjector() 83 public static Injector createInjector(Stage stage, Module... modules) { in createInjector() 94 public static Injector createInjector(Stage stage, in createInjector()
|
/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
D | GuiceServletContextListener.java | 19 import com.google.inject.Injector; 38 static final String INJECTOR_NAME = Injector.class.getName(); 47 Injector injector = getInjector(); in contextInitialized() 62 protected abstract Injector getInjector(); in getInjector()
|
/external/guice/core/src/com/google/inject/internal/ |
D | InternalInjectorCreator.java | 22 import com.google.inject.Injector; 96 public Injector build() { in build() 161 private Injector primaryInjector() { in primaryInjector() 239 static class ToolStageInjector implements Injector { 240 private final Injector delegateInjector; 242 ToolStageInjector(Injector delegateInjector) { in ToolStageInjector() 267 public Injector getParent() { in getParent() 270 public Injector createChildInjector(Iterable<? extends Module> modules) { in createChildInjector() 273 public Injector createChildInjector(Module... modules) { in createChildInjector()
|
D | InjectorShell.java | 25 import com.google.inject.Injector; 220 Key<Injector> key = Key.get(Injector.class); in bindInjector() 223 new ProviderInstanceBindingImpl<Injector>(injector, key, SourceProvider.UNKNOWN_SOURCE, in bindInjector() 228 private static class InjectorFactory implements InternalFactory<Injector>, Provider<Injector> { 229 private final Injector injector; 231 private InjectorFactory(Injector injector) { in InjectorFactory() 235 …public Injector get(Errors errors, InternalContext context, Dependency<?> dependency, boolean link… in get() 240 public Injector get() { in get()
|
/external/testng/src/main/java/org/testng/ |
D | ITestContext.java | 3 import com.google.inject.Injector; 123 public Injector getInjector(List<Module> moduleInstances); in getInjector() 124 Injector getInjector(IClass iClass); in getInjector() 125 public void addInjector(List<Module> moduleInstances, Injector injector); in addInjector()
|
/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/ |
D | FactoryProvider2Test.java | 27 import com.google.inject.Injector; 51 Injector injector = Guice.createInjector(new AbstractModule() { in testAssistedFactory() 71 Injector injector = Guice.createInjector(new AbstractModule() { in testAssistedFactoryWithAnnotations() 134 Injector injector = Guice.createInjector(new AbstractModule() { in testFactoryUsesInjectedConstructor() 170 Injector injector = Guice.createInjector(new AbstractModule() { in testConstructorDoesntNeedAllFactoryMethodArguments() 192 Injector injector = Guice.createInjector(new AbstractModule() { in testMethodsAndFieldsGetInjected() 229 Injector injector = Guice.createInjector(new AbstractModule() { in testProviderInjection() 256 Injector injector = Guice.createInjector(new AbstractModule() { in testAssistedProviderInjection() 289 Injector injector = Guice.createInjector(new AbstractModule() { in testTypeTokenInjection() 321 Injector injector = Guice.createInjector(new AbstractModule() { in testTypeTokenProviderInjection() [all …]
|
D | FactoryProviderTest.java | 28 import com.google.inject.Injector; 55 Injector injector = Guice.createInjector(new AbstractModule() { in testAssistedFactory() 75 Injector injector = Guice.createInjector(new AbstractModule() { in testFactoryBindingDependencies() 91 Injector injector = Guice.createInjector(new AbstractModule() { in testAssistedFactoryWithAnnotations() 154 Injector injector = Guice.createInjector(new AbstractModule() { in testFactoryWithMultipleMethods() 227 Injector injector = Guice.createInjector(new AbstractModule() { in testMethodsAndFieldsGetInjected() 264 Injector injector = Guice.createInjector(new AbstractModule() { in testProviderInjection() 291 Injector injector = Guice.createInjector(new AbstractModule() { in testTypeTokenInjection() 323 Injector injector = Guice.createInjector(new AbstractModule() { in testTypeTokenProviderInjection() 360 Injector injector = Guice.createInjector(new AbstractModule() { in testAssistInjectionInNonPublicConstructor() [all …]
|
/external/guice/extensions/dagger-adapter/test/com/google/inject/daggeradapter/ |
D | DaggerAdapterTest.java | 24 import com.google.inject.Injector; 49 Injector i = Guice.createInjector(DaggerAdapter.from(new SimpleDaggerModule())); in testSimpleModule() 61 Injector i = Guice.createInjector( in testInteractionWithGuiceModules() 80 Injector i = Guice.createInjector( in testSetBindings() 94 Injector i = Guice.createInjector( in testSetBindingsWithGuiceModule()
|
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/ |
D | CheckedProviderMethodsModuleTest.java | 23 import com.google.inject.Injector; 126 Injector injector = Guice.createInjector(new TestModule()); in testNoAnnotationNoScope() 134 Injector injector = Guice.createInjector(testModule); in testWithScope() 147 Injector injector = Guice.createInjector(testModule); in testWithAnnotation() 155 Injector injector = Guice.createInjector(testModule); in testWithInjectedParameters() 164 Injector injector = Guice.createInjector(testModule); in testWithThrownException() 179 Injector injector = Guice.createInjector(testModule); in testExposedMethod()
|
/external/guice/core/test/com/google/inject/util/ |
D | OverrideModuleTest.java | 35 import com.google.inject.Injector; 72 Injector injector = createInjector(Modules.override(newModule("A")).with(newModule("B"))); in testOverride() 79 Injector injector = createInjector(module); in testOverrideMultiple() 87 Injector injector = createInjector(Modules.override(EMPTY_MODULE).with(newModule("B"))); in testOverrideUnmatchedTolerated() 104 Injector injector = createInjector(Modules.override(original).with(replacements)); in testOverrideConstant() 116 Injector injector = createInjector(Modules.override(original).with(EMPTY_MODULE)); in testGetProviderInModule() 131 Injector injector = createInjector(Modules.override(original).with(replacements)); in testOverrideWhatGetProviderProvided() 150 Injector injector = createInjector(Modules.override(original).with(replacements)); in testOverrideUsingOriginalsGetProvider() 180 Injector injector = createInjector(Modules.override(overrides).with(replacements2)); in testOverrideOfOverride() 274 Injector injector = createInjector(Modules.override(original).with(replacements)); in testOverrideUntargettedBinding() [all …]
|