Home
last modified time | relevance | path

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

/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/
DFactoryProviderTest.java63 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactory() local
65 Mustang blueMustang = (Mustang) carFactory.create(Color.BLUE); in testAssistedFactory()
69 Mustang redMustang = (Mustang) carFactory.create(Color.RED); in testAssistedFactory()
101 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactoryWithAnnotations() local
103 Camaro blueCamaro = (Camaro) carFactory.create(Color.BLUE); in testAssistedFactoryWithAnnotations()
108 Camaro redCamaro = (Camaro) carFactory.create(Color.RED); in testAssistedFactoryWithAnnotations()
163 SummerCarFactory carFactory = injector.getInstance(SummerCarFactory.class); in testFactoryWithMultipleMethods() local
165 Corvette blueCorvette = (Corvette) carFactory.createConvertible(Color.BLUE); in testFactoryWithMultipleMethods()
170 Corvette redCorvette = (Corvette) carFactory.create(Color.RED, false); in testFactoryWithMultipleMethods()
237 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testMethodsAndFieldsGetInjected() local
[all …]
DFactoryProvider2Test.java59 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactory() local
61 Mustang blueMustang = (Mustang) carFactory.create(Color.BLUE); in testAssistedFactory()
65 Mustang redMustang = (Mustang) carFactory.create(Color.RED); in testAssistedFactory()
81 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactoryWithAnnotations() local
83 Camaro blueCamaro = (Camaro) carFactory.create(Color.BLUE); in testAssistedFactoryWithAnnotations()
88 Camaro redCamaro = (Camaro) carFactory.create(Color.RED); in testAssistedFactoryWithAnnotations()
143 SummerCarFactory carFactory = injector.getInstance(SummerCarFactory.class); in testFactoryUsesInjectedConstructor() local
145 Corvette redCorvette = (Corvette) carFactory.create(Color.RED, false); in testFactoryUsesInjectedConstructor()
202 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testMethodsAndFieldsGetInjected() local
204 Porsche grayPorsche = (Porsche) carFactory.create(Color.GRAY); in testMethodsAndFieldsGetInjected()
[all …]