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.java71 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactory() local
73 Mustang blueMustang = (Mustang) carFactory.create(Color.BLUE); in testAssistedFactory()
77 Mustang redMustang = (Mustang) carFactory.create(Color.RED); in testAssistedFactory()
114 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactoryWithAnnotations() local
116 Camaro blueCamaro = (Camaro) carFactory.create(Color.BLUE); in testAssistedFactoryWithAnnotations()
121 Camaro redCamaro = (Camaro) carFactory.create(Color.RED); in testAssistedFactoryWithAnnotations()
178 SummerCarFactory carFactory = injector.getInstance(SummerCarFactory.class); in testFactoryWithMultipleMethods() local
180 Corvette blueCorvette = (Corvette) carFactory.createConvertible(Color.BLUE); in testFactoryWithMultipleMethods()
185 Corvette redCorvette = (Corvette) carFactory.create(Color.RED, false); in testFactoryWithMultipleMethods()
256 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testMethodsAndFieldsGetInjected() local
[all …]
DFactoryProvider2Test.java68 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactory() local
70 Mustang blueMustang = (Mustang) carFactory.create(Color.BLUE); in testAssistedFactory()
74 Mustang redMustang = (Mustang) carFactory.create(Color.RED); in testAssistedFactory()
92 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactoryWithAnnotations() local
94 Camaro blueCamaro = (Camaro) carFactory.create(Color.BLUE); in testAssistedFactoryWithAnnotations()
99 Camaro redCamaro = (Camaro) carFactory.create(Color.RED); in testAssistedFactoryWithAnnotations()
156 SummerCarFactory carFactory = injector.getInstance(SummerCarFactory.class); in testFactoryUsesInjectedConstructor() local
158 Corvette redCorvette = (Corvette) carFactory.create(Color.RED, false); in testFactoryUsesInjectedConstructor()
220 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testMethodsAndFieldsGetInjected() local
222 Porsche grayPorsche = (Porsche) carFactory.create(Color.GRAY); in testMethodsAndFieldsGetInjected()
[all …]