diff --git a/src/main/java/hs/fulda/de/ci/exam/project/Person.java b/src/main/java/hs/fulda/de/ci/exam/project/Person.java index e5e96e8..34674cd 100644 --- a/src/main/java/hs/fulda/de/ci/exam/project/Person.java +++ b/src/main/java/hs/fulda/de/ci/exam/project/Person.java @@ -17,4 +17,13 @@ public class Person { public String getName() { return name; } + public Address getAddress() { + return address; + } + public String getEmail() { + return email; + } + public String getPhone() { + return phone; + } } diff --git a/src/test/java/hs/fulda/de/ci/exam/project/PersonTest.java b/src/test/java/hs/fulda/de/ci/exam/project/PersonTest.java index 65a5c42..30db8bf 100644 --- a/src/test/java/hs/fulda/de/ci/exam/project/PersonTest.java +++ b/src/test/java/hs/fulda/de/ci/exam/project/PersonTest.java @@ -12,4 +12,19 @@ public class PersonTest { void test_getName() { assertThat(person1.getName()).describedAs("get person name").isEqualTo("Max Mustermann"); } + + @Test + void test_getAddress() { + assertThat(person1.getAddress()).describedAs("get address of person").isEqualTo(address1); + } + + @Test + void test_getEmail() { + assertThat(person1.getEmail()).describedAs("get person email").isEqualTo("max.mustermann@gmail.com"); + } + @Test + void test_getPhone() { + assertThat(person1.getPhone()).describedAs("get person phone").isEqualTo("015147890206"); + } + }