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