import java.util.GregorianCalendar;\r
\r
import static junit.framework.Assert.assertEquals;\r
+import static junit.framework.Assert.assertNull;\r
+import static junit.framework.Assert.assertNotNull;\r
\r
public abstract class UnitUtils {\r
public static void assertDateSec(Date expected, Date reached) {\r
+ if (expected == null) {\r
+ assertNull(reached);\r
+ return;\r
+ } else {\r
+ assertNotNull(reached);\r
+ }\r
+\r
Calendar expectedCal = new GregorianCalendar();\r
expectedCal.setTime(expected);\r
Calendar reachedCal = new GregorianCalendar();\r