1 Reply Latest reply on Aug 27, 2005 7:29 AM by Alejandro Guizar

    VariableInstanceDbTest testDate failure MSSQL jtds

    Andrew Bruno Newbie

      The testDate method of VariableInstanceDbTest fails when using MSSQL2000 with the jtds driver.

      expected:<Thu Aug 25 11:48:11 EST 2005> but was:<2005-08-25 11:48:11.327>

      junit.framework.AssertionFailedError: expected:<Thu Aug 25 11:48:11 EST 2005> but was:<2005-08-25 11:48:11.327> at org.jbpm.context.exe.VariableInstanceDbTest.testDate(VariableInstanceDbTest.java:143)

      The code snip is:

      public void testDate() {
      Date now = new Date();
      contextInstance.setVariable("a", now);
      processInstance = saveAndReload(processInstance);
      contextInstance = processInstance.getContextInstance();
      assertEquals(now, contextInstance.getVariable("a"));
      }

      Any ideas? Is there something I can do in terms of configuration?

      Thanks, Andrew