Update ImmutablePersonUnitTest.java
This commit is contained in:
parent
b07426336f
commit
48690d61be
@ -6,11 +6,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
|
|||||||
|
|
||||||
public class ImmutablePersonUnitTest {
|
public class ImmutablePersonUnitTest {
|
||||||
|
|
||||||
@Test
|
|
||||||
public void givenImmutablePerson_whenModifyName_thenCompilationError() {
|
|
||||||
ImmutablePerson person = new ImmutablePerson("John", 30);
|
|
||||||
// person.setName("Jane");
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void givenImmutablePerson_whenAccessFields_thenCorrectValues() {
|
public void givenImmutablePerson_whenAccessFields_thenCorrectValues() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user