Searched refs:carFactory (Results 1 – 2 of 2) sorted by relevance
71 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactory() local73 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() local116 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() local180 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 …]
68 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactory() local70 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() local94 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() local158 Corvette redCorvette = (Corvette) carFactory.create(Color.RED, false); in testFactoryUsesInjectedConstructor()220 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testMethodsAndFieldsGetInjected() local222 Porsche grayPorsche = (Porsche) carFactory.create(Color.GRAY); in testMethodsAndFieldsGetInjected()[all …]