Home
last modified time | relevance | path

Searched refs:ColoredCarFactory (Results 1 – 3 of 3) sorted by relevance

/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/
DFactoryProvider2Test.java64 bind(ColoredCarFactory.class) in testAssistedFactory()
65 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Mustang.class)); in testAssistedFactory()
68 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactory()
87 bind(ColoredCarFactory.class) in testAssistedFactoryWithAnnotations()
88 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Camaro.class)); in testAssistedFactoryWithAnnotations()
92 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactoryWithAnnotations()
107 interface ColoredCarFactory { interface in FactoryProvider2Test
216 bind(ColoredCarFactory.class) in testMethodsAndFieldsGetInjected()
217 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Porsche.class)); in testMethodsAndFieldsGetInjected()
220 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testMethodsAndFieldsGetInjected()
[all …]
DFactoryProviderTest.java67 bind(ColoredCarFactory.class) in testAssistedFactory()
68 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Mustang.class)); in testAssistedFactory()
71 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactory()
89 bind(ColoredCarFactory.class) in testFactoryBindingDependencies()
90 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Mustang.class)); in testFactoryBindingDependencies()
94 Binding<?> binding = injector.getBinding(ColoredCarFactory.class); in testFactoryBindingDependencies()
109 bind(ColoredCarFactory.class) in testAssistedFactoryWithAnnotations()
110 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Camaro.class)); in testAssistedFactoryWithAnnotations()
114 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactoryWithAnnotations()
129 interface ColoredCarFactory { interface in FactoryProviderTest
[all …]
DFactoryModuleBuilderTest.java66 install(new FactoryModuleBuilder().build(ColoredCarFactory.class)); in testImplicitForwardingAssistedBindingFailsWithInterface()
76 "at " + ColoredCarFactory.class.getName() + ".create("); in testImplicitForwardingAssistedBindingFailsWithInterface()
136 .build(ColoredCarFactory.class)); in testExplicitForwardingAssistedBindingFailsWithInterface()
147 "at " + ColoredCarFactory.class.getName() + ".create("); in testExplicitForwardingAssistedBindingFailsWithInterface()
162 .build(ColoredCarFactory.class)); in testExplicitForwardingAssistedBindingFailsWithAbstractClass()
173 "at " + ColoredCarFactory.class.getName() + ".create("); in testExplicitForwardingAssistedBindingFailsWithAbstractClass()
188 .build(ColoredCarFactory.class)); in testExplicitForwardingAssistedBindingCreatesNewObjects()
197 ColoredCarFactory factory = injector.getInstance(ColoredCarFactory.class); in testExplicitForwardingAssistedBindingCreatesNewObjects()
238 .build(ColoredCarFactory.class)); in testParentBoundReturnValue()
242 ColoredCarFactory factory = injector.getInstance(ColoredCarFactory.class); in testParentBoundReturnValue()
[all …]