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 {
|
||||
|
||||
@Test
|
||||
public void givenImmutablePerson_whenModifyName_thenCompilationError() {
|
||||
ImmutablePerson person = new ImmutablePerson("John", 30);
|
||||
// person.setName("Jane");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void givenImmutablePerson_whenAccessFields_thenCorrectValues() {
|
||||
|
|
Loading…
Reference in New Issue