Searched refs:carFactory (Results 1 – 2 of 2) sorted by relevance
63 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactory() local65 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() local103 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() local165 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 …]
59 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testAssistedFactory() local61 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() local83 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() local145 Corvette redCorvette = (Corvette) carFactory.create(Color.RED, false); in testFactoryUsesInjectedConstructor()202 ColoredCarFactory carFactory = injector.getInstance(ColoredCarFactory.class); in testMethodsAndFieldsGetInjected() local204 Porsche grayPorsche = (Porsche) carFactory.create(Color.GRAY); in testMethodsAndFieldsGetInjected()[all …]