Searched refs:Camaro (Results 1 – 2 of 2) sorted by relevance
97 .toProvider(FactoryProvider.newFactory(ColoredCarFactory.class, Camaro.class)); in testAssistedFactoryWithAnnotations()103 Camaro blueCamaro = (Camaro) carFactory.create(Color.BLUE); in testAssistedFactoryWithAnnotations()108 Camaro redCamaro = (Camaro) carFactory.create(Color.RED); in testAssistedFactoryWithAnnotations()132 public static class Camaro implements Car { class in FactoryProviderTest138 public Camaro( in Camaro() method in FactoryProviderTest.Camaro600 final TypeLiteral<GenericColoredCarFactory<Camaro>> camaroTypeLiteral in testGenericAssistedFactory()601 = new TypeLiteral<GenericColoredCarFactory<Camaro>>() {}; in testGenericAssistedFactory()612 FactoryProvider.newFactory(camaroTypeLiteral, TypeLiteral.get(Camaro.class))); in testGenericAssistedFactory()618 GenericColoredCarFactory<Camaro> camaroFactory in testGenericAssistedFactory()625 Camaro redCamaro = camaroFactory.create(Color.RED); in testGenericAssistedFactory()[all …]
77 FactoryProvider.newFactory(ColoredCarFactory.class, Camaro.class)); in testAssistedFactoryWithAnnotations()83 Camaro blueCamaro = (Camaro) carFactory.create(Color.BLUE); in testAssistedFactoryWithAnnotations()88 Camaro redCamaro = (Camaro) carFactory.create(Color.RED); in testAssistedFactoryWithAnnotations()113 public static class Camaro implements Car { class in FactoryProvider2Test119 public Camaro( in Camaro() method in FactoryProvider2Test.Camaro681 @Inject Camaro camaro;841 final TypeLiteral<GenericColoredCarFactory<Camaro>> camaroTypeLiteral in testGenericAssistedFactory()842 = new TypeLiteral<GenericColoredCarFactory<Camaro>>() {}; in testGenericAssistedFactory()853 … .toProvider(FactoryProvider.newFactory(camaroTypeLiteral, TypeLiteral.get(Camaro.class))); in testGenericAssistedFactory()859 GenericColoredCarFactory<Camaro> camaroFactory in testGenericAssistedFactory()[all …]