@@ -0,0 +1,966 @@
+import junit.framework.Assert;%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.*;%0A%0Apublic class DayTest %7B%0A%0A    @Test%0A    public void testFromString() throws Exception %7B%0A        Day mon = Day.MONDAY;%0A        Day tue = Day.TUESDAY;%0A        Day wed = Day.WEDNESDAY;%0A        Day thu = Day.THURSDAY;%0A        Day fri = Day.FRIDAY;%0A        Day sat = Day.SATURDAY;%0A        Day sun = Day.SUNDAY;%0A%0A        Assert.assertTrue(%22Ikke korrekt dag%22, mon == Day.fromString(%22mandag%22));%0A        Assert.assertTrue(%22Ikke korrekt dag%22, tue == Day.fromString(%22tirsdag%22));%0A        Assert.assertTrue(%22Ikke korrekt dag%22, wed == Day.fromString(%22onsdag%22));%0A        Assert.assertTrue(%22Ikke korrekt dag%22, thu == Day.fromString(%22torsdag%22));%0A        Assert.assertTrue(%22Ikke korrekt dag%22, fri == Day.fromString(%22fredag%22));%0A        Assert.assertTrue(%22Ikke korrekt dag%22, sat == Day.fromString(%22l%C3%B8rdag%22));%0A        Assert.assertTrue(%22Ikke korrekt dag%22, sun == Day.fromString(%22s%C3%B8ndag%22));%0A    %7D%0A%0A%7D%0A

Test af Day