Searched refs:ColoredCarFactory (Results 1 – 3 of 3) sorted by relevance
55 bind(ColoredCarFactory.class).toProvider( in testAssistedFactory()56 FactoryProvider.newFactory(ColoredCarFactory.class, Mustang.class)); in testAssistedFactory()59 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactory()76 bind(ColoredCarFactory.class).toProvider( in testAssistedFactoryWithAnnotations()77 FactoryProvider.newFactory(ColoredCarFactory.class, Camaro.class)); in testAssistedFactoryWithAnnotations()81 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactoryWithAnnotations()96 interface ColoredCarFactory { interface in FactoryProvider2Test198 bind(ColoredCarFactory.class).toProvider( in testMethodsAndFieldsGetInjected()199 FactoryProvider.newFactory(ColoredCarFactory.class, Porsche.class)); in testMethodsAndFieldsGetInjected()202 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testMethodsAndFieldsGetInjected()[all …]
59 bind(ColoredCarFactory.class) in testAssistedFactory()60 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Mustang.class)); in testAssistedFactory()63 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactory()79 bind(ColoredCarFactory.class) in testFactoryBindingDependencies()80 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Mustang.class)); in testFactoryBindingDependencies()84 Binding<?> binding = injector.getBinding(ColoredCarFactory.class); in testFactoryBindingDependencies()96 bind(ColoredCarFactory.class) in testAssistedFactoryWithAnnotations()97 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Camaro.class)); in testAssistedFactoryWithAnnotations()101 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactoryWithAnnotations()117 interface ColoredCarFactory { interface in FactoryProviderTest[all …]
61 install(new FactoryModuleBuilder().build(ColoredCarFactory.class)); in testImplicitForwardingAssistedBindingFailsWithInterface()70 "at " + ColoredCarFactory.class.getName() + ".create("); in testImplicitForwardingAssistedBindingFailsWithInterface()119 .build(ColoredCarFactory.class)); in testExplicitForwardingAssistedBindingFailsWithInterface()129 "at " + ColoredCarFactory.class.getName() + ".create("); in testExplicitForwardingAssistedBindingFailsWithInterface()142 .build(ColoredCarFactory.class)); in testExplicitForwardingAssistedBindingFailsWithAbstractClass()152 "at " + ColoredCarFactory.class.getName() + ".create("); in testExplicitForwardingAssistedBindingFailsWithAbstractClass()162 ColoredCarFactory.class)); in testExplicitForwardingAssistedBindingCreatesNewObjects()167 ColoredCarFactory factory = injector.getInstance(ColoredCarFactory.class); in testExplicitForwardingAssistedBindingCreatesNewObjects()200 .build(ColoredCarFactory.class)); in testParentBoundReturnValue()204 ColoredCarFactory factory = injector.getInstance(ColoredCarFactory.class); in testParentBoundReturnValue()[all …]