Update MutableObjectExamplesUnitTest.java
This commit is contained in:
parent
48690d61be
commit
ac3959d261
|
@ -10,7 +10,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
public class MutableObjectExamplesUnitTest {
|
public class MutableObjectExamplesUnitTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenMutableString_whenModify_thenCorrectValue() {
|
public void givenMutableString_whenAppendElement_thenCorrectValue() {
|
||||||
StringBuilder mutableString = new StringBuilder("Hello");
|
StringBuilder mutableString = new StringBuilder("Hello");
|
||||||
mutableString.append(" World");
|
mutableString.append(" World");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue