[jbpm-commits] JBoss JBPM SVN: r3251 - jbpm3/trunk/modules/core/src/test/java/org/jbpm/context/log.

do-not-reply at jboss.org do-not-reply at jboss.org
Sun Dec 7 03:08:52 EST 2008


Author: thomas.diesler at jboss.com
Date: 2008-12-07 03:08:52 -0500 (Sun, 07 Dec 2008)
New Revision: 3251

Modified:
   jbpm3/trunk/modules/core/src/test/java/org/jbpm/context/log/VariableUpdateDbTest.java
Log:
Use single util instance

Modified: jbpm3/trunk/modules/core/src/test/java/org/jbpm/context/log/VariableUpdateDbTest.java
===================================================================
--- jbpm3/trunk/modules/core/src/test/java/org/jbpm/context/log/VariableUpdateDbTest.java	2008-12-06 16:39:08 UTC (rev 3250)
+++ jbpm3/trunk/modules/core/src/test/java/org/jbpm/context/log/VariableUpdateDbTest.java	2008-12-07 08:08:52 UTC (rev 3251)
@@ -93,10 +93,9 @@
 
     VariableUpdateLog variableLog = saveAndReloadUpdateLog(processInstance);
 
-    // assertEquals(now, ((Date) variableLog.getOldValue()));
-    // assertEquals(future, (Date) variableLog.getNewValue());
-    assertEquals(DateDbTestUtil.getInstance().convertDateToSeconds(now), DateDbTestUtil.getInstance().convertDateToSeconds((Date)variableLog.getOldValue()));
-    assertEquals(DateDbTestUtil.getInstance().convertDateToSeconds(future), DateDbTestUtil.getInstance().convertDateToSeconds((Date)variableLog.getNewValue()));
+    DateDbTestUtil dbUtilInst = DateDbTestUtil.getInstance();
+    assertEquals(dbUtilInst.convertDateToSeconds(now), dbUtilInst.convertDateToSeconds((Date)variableLog.getOldValue()));
+    assertEquals(dbUtilInst.convertDateToSeconds(future), dbUtilInst.convertDateToSeconds((Date)variableLog.getNewValue()));
   }
 
   public void testDoubleUpdateLog()




More information about the jbpm-commits mailing list