فهرست منبع

Added jUnit support.

Gilian Joosen 11 سال پیش
والد
کامیت
959ca9d883
2فایلهای تغییر یافته به همراه17 افزوده شده و 1 حذف شده
  1. 1 1
      src/GUI/GUI.java
  2. 16 0
      test/src/agenda/ActTimeTest.java

+ 1 - 1
src/GUI.java → src/GUI/GUI.java

@@ -1,4 +1,4 @@
-package src;
+package src.GUI;
 
 import src.agenda.*;
 

+ 16 - 0
test/src/agenda/ActTimeTest.java

@@ -0,0 +1,16 @@
+package src.agenda;
+
+import junit.framework.TestCase;
+
+public class ActTimeTest extends TestCase{
+
+    @org.junit.Before
+    public void setUp() throws Exception {
+    }
+
+    @org.junit.Test
+    public void testGetLength() throws Exception {
+        ActTime actTime = new ActTime(new Time(10, 10), new Time(10, 20));
+        assert(actTime.getLength() == 10);
+    }
+}