|
|
@ -0,0 +1,15 @@ |
|
|
|
package hs.fulda.de.ci.exam.project; |
|
|
|
|
|
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
|
|
|
import static org.assertj.core.api.Assertions.assertThat; |
|
|
|
|
|
|
|
public class PersonTest { |
|
|
|
Address address1 = new Address("Fuldaer str", "Fulda", "Hessen", "36037", "Germany"); |
|
|
|
Person person1 = new Person("Max Mustermann", address1, "max.mustermann@gmail.com", "015147890206"); |
|
|
|
|
|
|
|
@Test |
|
|
|
void test_getName() { |
|
|
|
assertThat(person1.getName()).describedAs("get person name").isEqualTo("Max Mustermann"); |
|
|
|
} |
|
|
|
} |