D | FactoryProviderTest.java | 52 private enum Color { BLUE, GREEN, RED, GRAY, BLACK, ORANGE, PINK } enum in FactoryProviderTest 65 Mustang blueMustang = (Mustang) carFactory.create(Color.BLUE); in testAssistedFactory() 66 assertEquals(Color.BLUE, blueMustang.color); in testAssistedFactory() 69 Mustang redMustang = (Mustang) carFactory.create(Color.RED); in testAssistedFactory() 70 assertEquals(Color.RED, redMustang.color); in testAssistedFactory() 103 Camaro blueCamaro = (Camaro) carFactory.create(Color.BLUE); in testAssistedFactoryWithAnnotations() 104 assertEquals(Color.BLUE, blueCamaro.color); in testAssistedFactoryWithAnnotations() 108 Camaro redCamaro = (Camaro) carFactory.create(Color.RED); in testAssistedFactoryWithAnnotations() 109 assertEquals(Color.RED, redCamaro.color); in testAssistedFactoryWithAnnotations() 118 Car create(Color color); in create() argument [all …]
|