|
@ -1,17 +1,13 @@ |
|
|
package hs.fulda.de.ci.exam.project; |
|
|
package hs.fulda.de.ci.exam.project; |
|
|
|
|
|
|
|
|
import org.junit.jupiter.api.BeforeEach; |
|
|
|
|
|
import org.junit.jupiter.api.Test; |
|
|
import org.junit.jupiter.api.Test; |
|
|
|
|
|
|
|
|
import static org.junit.jupiter.api.Assertions.*; |
|
|
|
|
|
|
|
|
import static org.assertj.core.api.Assertions.*; |
|
|
|
|
|
|
|
|
class AddressTest { |
|
|
class AddressTest { |
|
|
|
|
|
|
|
|
@BeforeEach |
|
|
|
|
|
void setUp() { |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |
|
|
void testToString() { |
|
|
|
|
|
|
|
|
void testToString_Adress() { |
|
|
|
|
|
Address address_fr = new Address("Frankfurt str 12", "Frankfurt", "Hessen", "63023", "Germany"); |
|
|
|
|
|
assertThat(address_fr.toString()).describedAs(" get address ").isEqualTo("Frankfurt str 12, Frankfurt, Hessen, 63023, Germany"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |