Update ImmutablePersonUnitTest.java

This commit is contained in:
Imran Alam 2024-02-05 14:24:18 +05:30 committed by GitHub
parent b07426336f
commit 48690d61be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 5 deletions

View File

@ -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() {