1 19 20 package org.netbeans.modules.tasklist.usertasks.model; 21 22 import junit.framework.Test; 23 24 import org.netbeans.junit.NbTestCase; 25 import org.netbeans.junit.NbTestSuite; 26 27 32 public class DurationTest extends NbTestCase { 33 public DurationTest (String name) { 34 super (name); 35 } 36 37 public static Test suite () { 38 return new NbTestSuite(TaskListTest.class); 39 } 40 41 public void testDummy() throws Exception { 42 Duration d = new Duration(8 * 60, 8 * 60, 7, true); 43 assertTrue(d.equals(new Duration(0, 1, 0, 0))); 44 d = new Duration(60, 8 * 60, 5, true); 45 assertTrue(d.equals(new Duration(0, 0, 1, 0))); 46 } 47 } 48 | Popular Tags |