Code example changes
This commit is contained in:
@@ -16,10 +16,10 @@ public class TestCakeClassConstructorInjection {
|
||||
|
||||
@Autowired
|
||||
Cake cake;
|
||||
|
||||
|
||||
@Test
|
||||
public void testConstructorInjection() {
|
||||
String testColor=cake.getFlavor().getColor();
|
||||
public void testConstructorInjection() {
|
||||
String testColor = cake.getFlavor().getColor();
|
||||
Assert.assertEquals(testColor, " White ");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user