/external/guice/core/test/com/google/inject/ |
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() 161 Guice.createInjector(new AbstractModule() { in testFailsIfInjectingScopedDirectlyWhenItIsntBound() 177 Injector injector = Guice.createInjector(new AbstractModule() { in testLinkedProviderBindingWorks() 193 Guice.createInjector(new AbstractModule() { in testJitGetFails() 208 Guice.createInjector(new AbstractModule() { in testJitInjectionFails() [all …]
|
D | BinderTest.java | 92 Guice.createInjector(new AbstractModule() { in testMissingBindings() 129 Guice.createInjector(new AbstractModule() { in testMissingDependency() 150 Guice.createInjector(new AbstractModule() { in testDanglingConstantBinding() 165 Guice.createInjector(new AbstractModule() { in testRecursiveBinding() 180 Guice.createInjector(new AbstractModule() { in testBindingNullConstant() 197 Guice.createInjector(new AbstractModule() { in testToStringOnBinderApi() 222 Guice.createInjector(new AbstractModule() { in testNothingIsSerializableInBinderApi() 251 Injector injector = Guice.createInjector(new AbstractModule() { in testArrayTypeCanonicalization() 267 Guice.createInjector(new AbstractModule() { in testArrayTypeCanonicalization() 283 injector = Guice.createInjector(new AbstractModule() { in testArrayTypeCanonicalization() [all …]
|
D | TypeConversionTest.java | 77 Injector injector = Guice.createInjector(new AbstractModule() { in testOneConstantInjection() 93 Injector injector = Guice.createInjector(new AbstractModule() { in testConstantInjection() 124 Injector injector = Guice.createInjector(new AbstractModule() { in testConstantInjectionWithExplicitBindingsRequired() 162 static class OuterErrorModule extends AbstractModule { 168 static class InnerErrorModule extends AbstractModule { 195 Injector injector = Guice.createInjector(new AbstractModule() { in testInvalidCharacter() 216 Injector injector = Guice.createInjector(new AbstractModule() { in testInvalidEnum() 237 Injector injector = Guice.createInjector(new AbstractModule() { in testToInstanceIsTreatedLikeConstant() 254 Injector injector = Guice.createInjector(new AbstractModule() { in testCustomTypeConversion() 273 static class InvalidCustomValueModule extends AbstractModule { [all …]
|
D | RequireAtInjectOnConstructorsTest.java | 31 Guice.createInjector(new AbstractModule() { in testNoCxtors_explicitBinding() 49 Injector injector = Guice.createInjector(new AbstractModule() { in testNoCxtors_jitBinding() 68 Guice.createInjector(new AbstractModule() { in testNoCxtors_implicitBinding() 87 Guice.createInjector(new AbstractModule() { in testNoCxtors_inheritedByPrivateModules() 111 Guice.createInjector(new AbstractModule() { in testNoCxtors_accumulatesAllErrors() 134 Guice.createInjector(new AbstractModule() { in testNoCxtors_separateOptionsForPrivateModules() 161 Guice.createInjector(new AbstractModule() { in testManyConstructorsButNoneWithAtInject() 179 Injector injector = Guice.createInjector(new AbstractModule() { in testRequireAtInjectStillAllowsToConstructorBindings()
|
D | RequestInjectionTest.java | 52 Guice.createInjector(new AbstractModule() { in testInjectMembers() 68 Guice.createInjector(new AbstractModule() { in testInjectStatics() 84 Guice.createInjector(new AbstractModule() { in testInjectMembersAndStatics() 102 Guice.createInjector(new AbstractModule() { in testValidationErrorOnInjectedMembers() 117 Guice.createInjector(new AbstractModule() { in testInjectionErrorOnInjectedMembers() 138 Guice.createInjector(new AbstractModule() { in testUserExceptionWhileInjectingInstance() 154 Guice.createInjector(new AbstractModule() { in testUserExceptionWhileInjectingStatically() 205 Injector injector = Guice.createInjector(new AbstractModule() { in testEarlyInjectableReferencesWithSameIdentity()
|
D | CircularDependencyTest.java | 48 Injector injector = Guice.createInjector(new AbstractModule() { in testCircularlyDependentConstructors() 59 Injector injector = Guice.createInjector(new AbstractModule() { in testCircularlyDependentConstructorsWithProviderMethods() 70 Injector injector = Guice.createInjector(new AbstractModule() { in testCircularlyDependentConstructorsWithProviderInstances() 91 Injector injector = Guice.createInjector(new AbstractModule() { in testCircularlyDependentConstructorsWithProviderKeys() 205 Guice.createInjector(new AbstractModule() { in testUnresolvableCircularDependenciesWithProviderInstances() 220 Guice.createInjector(new AbstractModule() { in testUnresolvableCircularDependenciesWithProviderKeys() 277 Guice.createInjector(new AbstractModule() { in testDisabledCircularDependency() 293 Guice.createInjector(new AbstractModule() { in testDisabledCircularDependenciesWithProviderInstances() 310 Guice.createInjector(new AbstractModule() { in testDisabledCircularDependenciesWithProviderKeys() 327 Guice.createInjector(new AbstractModule() { in testDisabledCircularDependenciesWithProvidedBy() [all …]
|
D | ParentInjectorTest.java | 119 Injector parent = Guice.createInjector(new AbstractModule() { in testScopesInherited() 124 Injector child = parent.createChildInjector(new AbstractModule() { in testScopesInherited() 141 Injector parent = Guice.createInjector(new AbstractModule() { in testInterceptorsInherited() 148 Injector child = parent.createChildInjector(new AbstractModule() { in testInterceptorsInherited() 179 Injector child = parent.createChildInjector(new AbstractModule() { in testInjectorInjectionSpanningInjectors() 221 Injector child = parent.createChildInjector(new AbstractModule() { in testScopeBoundInChildInjectorOnly() 242 Injector childInjector = parent.createChildInjector(new AbstractModule() { in testErrorInParentButOkayInChild() 270 private final Module bindsA = new AbstractModule() { 279 private final Module bindsB = new AbstractModule() { 294 private final Module bindListConverterModule = new AbstractModule() { [all …]
|
D | GenericInjectionTest.java | 39 Injector injector = Guice.createInjector((Module) new AbstractModule() { in testGenericInjection() 65 Injector injector = Guice.createInjector(new AbstractModule() { in testExplicitBindingOfGenericType() 91 assertParameterizedDepsInjected(Key.get(Object.class), new AbstractModule() { in testInjectingParameterizedDependenciesForBindingTarget() method 102 assertParameterizedDepsInjected(Key.get(type), new AbstractModule() { in testInjectingParameterizedDependenciesForBindingSource() method 113 assertParameterizedDepsInjected(Key.get(type), new AbstractModule() { in testBindingToSubtype() method 124 assertParameterizedDepsInjected(Key.get(type), new AbstractModule() { in testBindingSubtype() method 133 Module bindDataModule = new AbstractModule() { in assertParameterizedDepsInjected() 175 Injector injector = Guice.createInjector(new AbstractModule() { in testImmediateTypeVariablesAreInjected()
|
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 | BindingTest.java | 57 Guice.createInjector(new AbstractModule() { in testExplicitCyclicDependency() 70 static class MyModule extends AbstractModule { 111 Guice.createInjector(new AbstractModule() { in testBindToUnboundLinkedBinding() 127 Injector injector = Guice.createInjector(new AbstractModule() { in testScopeIsAppliedToKeyNotTarget() 230 Injector injector = Guice.createInjector(new AbstractModule() { in testToConstructorBinding() 245 Injector injector = Guice.createInjector(new AbstractModule() { in testToConstructorBindingsOnParameterizedTypes() 267 Guice.createInjector(new AbstractModule() { in testToConstructorBindingsFailsOnRawTypes() 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() [all …]
|
D | TypeListenerTest.java | 97 Guice.createInjector(new AbstractModule() { in testTypeListenersAreFired() 115 Injector injector = Guice.createInjector(new AbstractModule() { in testInstallingInjectionListener() 158 Injector injector = Guice.createInjector(new AbstractModule() { 179 class OuterThrowsModule extends AbstractModule { 184 class InnerThrowsModule extends AbstractModule { 209 Injector injector = Guice.createInjector(new AbstractModule() { 242 Injector injector = Guice.createInjector(new AbstractModule() { 289 Guice.createInjector(new AbstractModule() { 316 Injector injector = Guice.createInjector(new AbstractModule() { 376 Guice.createInjector(new AbstractModule() { [all …]
|
/external/guice/core/test/com/google/inject/spi/ |
D | ModuleAnnotatedMethodScannerTest.java | 26 import com.google.inject.AbstractModule; 52 Module module = new AbstractModule() { in testScanning() 79 Module module = new AbstractModule() { in testSkipSources() 81 binder().skipSources(getClass()).install(new AbstractModule() { in testSkipSources() 93 Module module = new AbstractModule() { in testWithSource() 95 binder().withSource("source").install(new AbstractModule() { in testWithSource() 107 Module module = new AbstractModule() { in testMoreThanOneClaimedAnnotationFails() 140 return new AbstractModule() { in module() 192 return new AbstractModule() { 209 static class SomeModule extends AbstractModule { [all …]
|
D | ElementsTest.java | 27 import com.google.inject.AbstractModule; 80 new AbstractModule() { in testAddMessageErrorCommand() 102 new AbstractModule() { in testAddThrowableErrorCommand() 122 new AbstractModule() { in testErrorsAddedWhenExceptionsAreThrown() 124 install(new AbstractModule() { in testErrorsAddedWhenExceptionsAreThrown() 158 new AbstractModule() { in testBindConstantAnnotations() 187 new AbstractModule() { in testBindConstantTypes() 313 new AbstractModule() { in testBindKeysNoAnnotations() 335 new AbstractModule() { in testBindKeysWithAnnotationType() 356 new AbstractModule() { in testBindKeysWithAnnotationInstance() [all …]
|
/external/guice/core/test/com/google/inject/util/ |
D | OverrideModuleTest.java | 29 import com.google.inject.AbstractModule; 92 Module original = new AbstractModule() { in testOverrideConstant() 98 Module replacements = new AbstractModule() { in testOverrideConstant() 109 Module original = new AbstractModule() { in testGetProviderInModule() 122 Module original = new AbstractModule() { in testOverrideWhatGetProviderProvided() 137 Module original = new AbstractModule() { in testOverrideUsingOriginalsGetProvider() 144 Module replacements = new AbstractModule() { in testOverrideUsingOriginalsGetProvider() 156 Module original = new AbstractModule() { in testOverrideOfOverride() 164 Module replacements1 = new AbstractModule() { in testOverrideOfOverride() 173 Module replacements2 = new AbstractModule() { in testOverrideOfOverride() [all …]
|
/external/guice/extensions/multibindings/test/com/google/inject/multibindings/ |
D | MapBinderTest.java | 34 import com.google.inject.AbstractModule; 118 Module module = new AbstractModule() { in testAllBindings() 166 Module abc = new AbstractModule() { in testMapBinderAggregatesMultipleModules() 175 Module de = new AbstractModule() { in testMapBinderAggregatesMultipleModules() 197 Module module = new AbstractModule() { in testMapBinderAggregationForAnnotationInstance() 223 Module module = new AbstractModule() { in testMapBinderAggregationForAnnotationType() 249 Module module = new AbstractModule() { in testMapBinderWithMultipleAnnotationValueSets() 284 Module module = new AbstractModule() { in testMapBinderWithMultipleAnnotationTypeSets() 319 Module module = new AbstractModule() { in testMapBinderWithMultipleTypes() 338 Module module = new AbstractModule() { in testMapBinderWithEmptyMap() [all …]
|
D | MultibinderTest.java | 38 import com.google.inject.AbstractModule; 104 Module abc = new AbstractModule() { in testMultibinderAggregatesMultipleModules() 112 Module de = new AbstractModule() { in testMultibinderAggregatesMultipleModules() 131 Module module = new AbstractModule() { in testMultibinderAggregationForAnnotationInstance() 153 Module module = new AbstractModule() { in testMultibinderAggregationForAnnotationType() 175 Module module = new AbstractModule() { in testMultibinderWithMultipleAnnotationValueSets() 206 Module module = new AbstractModule() { in testMultibinderWithMultipleAnnotationTypeSets() 237 Module module = new AbstractModule() { in testMultibinderWithMultipleSetTypes() 256 Module module = new AbstractModule() { in testMultibinderWithEmptySet() 270 Injector injector = Guice.createInjector(new AbstractModule() { in testMultibinderSetIsUnmodifiable() [all …]
|
/external/guice/extensions/throwingproviders/test/com/google/inject/throwingproviders/ |
D | ThrowingProviderTest.java | 26 import com.google.inject.AbstractModule; 67 private Injector bindInjector = Guice.createInjector(new AbstractModule() { 82 private Injector providesInjector = Guice.createInjector(new AbstractModule() { 219 bindInjector = Guice.createInjector(new AbstractModule() { in testAnnotations_Bind() 237 providesInjector = Guice.createInjector(new AbstractModule() { in testAnnotations_Provides() 302 bindInjector = Guice.createInjector(new AbstractModule() { in testThrowingProviderSubclassing() 318 Guice.createInjector(new AbstractModule() { in testBindingToNonInterfaceType_Bind() 334 Guice.createInjector(new AbstractModule() { in testBindingToNonInterfaceType_Provides() 354 bindInjector = Guice.createInjector(new AbstractModule() { in testBindingToSubSubInterface_Bind() 369 Guice.createInjector(new AbstractModule() { in testBindingToSubSubInterface_Provides() [all …]
|
D | CheckedProviderTest.java | 27 import com.google.inject.AbstractModule; 98 bindInjector = Guice.createInjector(new AbstractModule() { in setUp() 116 providesInjector = Guice.createInjector(new AbstractModule() { in setUp() 140 cxtorInjector = Guice.createInjector(new AbstractModule() { in setUp() 302 bindInjector = Guice.createInjector(new AbstractModule() { in testAnnotations_Bind() 321 providesInjector = Guice.createInjector(new AbstractModule() { in testAnnotations_Provides() 355 cxtorInjector = Guice.createInjector(new AbstractModule() { in testAnnotations_Cxtor() 416 bindInjector = Guice.createInjector(new AbstractModule() { in testThrowingProviderSubclassing() 433 Guice.createInjector(new AbstractModule() { in testBindingToNonInterfaceType_Bind() 450 Guice.createInjector(new AbstractModule() { in testBindingToNonInterfaceType_Provides() [all …]
|
/external/guice/jdk8-tests/test/com/google/inject/jdk8/ |
D | Java8LanguageFeatureBindingTest.java | 19 import com.google.inject.AbstractModule; 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() 101 Guice.createInjector(new AbstractModule() { in testProvider_usingJdk8Features() 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 | 23 import com.google.inject.AbstractModule; 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/extensions/assistedinject/test/com/google/inject/assistedinject/ |
D | FactoryModuleBuilderTest.java | 24 import com.google.inject.AbstractModule; 57 Guice.createInjector(new AbstractModule() { in testImplicitForwardingAssistedBindingFailsWithInterface() 77 Guice.createInjector(new AbstractModule() { in testImplicitForwardingAssistedBindingFailsWithAbstractClass() 97 Injector injector = Guice.createInjector(new AbstractModule() { in testImplicitForwardingAssistedBindingCreatesNewObjects() 113 Guice.createInjector(new AbstractModule() { in testExplicitForwardingAssistedBindingFailsWithInterface() 136 Guice.createInjector(new AbstractModule() { in testExplicitForwardingAssistedBindingFailsWithAbstractClass() 159 Injector injector = Guice.createInjector(new AbstractModule() { in testExplicitForwardingAssistedBindingCreatesNewObjects() 175 Injector injector = Guice.createInjector(new AbstractModule() { in testAnnotatedAndParentBoundReturnValue() 194 Injector injector = Guice.createInjector(new AbstractModule() { in testParentBoundReturnValue() 210 Injector injector = Guice.createInjector(new AbstractModule() { in testConfigureAnnotatedReturnValue() [all …]
|
D | FactoryProvider2Test.java | 22 import com.google.inject.AbstractModule; 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 | ManyConstructorsTest.java | 19 import com.google.inject.AbstractModule; 33 Injector injector = Guice.createInjector(new AbstractModule() { in testTwoConstructors() 49 Injector injector = Guice.createInjector(new AbstractModule() { in testDifferentOrderParameters() 68 Injector injector = Guice.createInjector(new AbstractModule() { in testInterfaceToImpl() 86 Injector injector = Guice.createInjector(new AbstractModule() { in testUsingOneConstructor() 97 injector = Guice.createInjector(new AbstractModule() { in testUsingOneConstructor() 111 Guice.createInjector(new AbstractModule() { in testTooManyMatchingConstructors() 129 Guice.createInjector(new AbstractModule() { in testNoMatchingConstructorsBecauseTooManyParams() 145 Guice.createInjector(new AbstractModule() { in testNoMatchingConstrucotsBecauseTooLittleParams() 230 Injector injector = Guice.createInjector(new AbstractModule() { in testDependenciesAndOtherAnnotations()
|
D | FactoryProviderTest.java | 22 import com.google.inject.AbstractModule; 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/core/test/com/googlecode/guice/ |
D | Jsr330Test.java | 22 import com.google.inject.AbstractModule; 62 Injector injector = Guice.createInjector(new AbstractModule() { in testInject() 80 Injector injector = Guice.createInjector(new AbstractModule() { in testQualifiedInject() 98 Injector injector = Guice.createInjector(new AbstractModule() { in testProviderInject() 118 Injector injector = Guice.createInjector(new AbstractModule() { in testScopeAnnotation() 146 Injector injector = Guice.createInjector(new AbstractModule() { in testSingleton() 162 Guice.createInjector(Stage.PRODUCTION, new AbstractModule() { in testEagerSingleton() 174 Injector injector = Guice.createInjector(new AbstractModule() { in testScopesIsSingleton() 187 Guice.createInjector(new AbstractModule() { in testInjectingFinalFieldsIsForbidden() 201 Guice.createInjector(new AbstractModule() { in testInjectingAbstractMethodsIsForbidden() [all …]
|