|
@ -0,0 +1,21 @@ |
|
|
|
|
|
package de.hs_fulda.ciip.projjpn; |
|
|
|
|
|
|
|
|
|
|
|
import junit.framework.TestCase; |
|
|
|
|
|
|
|
|
|
|
|
public class BirthdateTest extends TestCase { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Test method for {@link de.hs_fulda.ciip.projjpn.Birthdate#toString()}. |
|
|
|
|
|
*/ |
|
|
|
|
|
public final void testToString() { |
|
|
|
|
|
|
|
|
|
|
|
// Given |
|
|
|
|
|
Birthdate b = new Birthdate(1, 1, 2000); |
|
|
|
|
|
|
|
|
|
|
|
// When |
|
|
|
|
|
String expectedDate = "1.1.2000"; |
|
|
|
|
|
|
|
|
|
|
|
// Then |
|
|
|
|
|
assertEquals(expectedDate, b.toString()); |
|
|
|
|
|
} |
|
|
|
|
|
} |