You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by ch...@apache.org on 2012/10/11 16:02:00 UTC

svn commit: r1397056 - /jena/Scratch/Eyeball/trunk/src/test/java/com/hp/hpl/jena/eyeball/sign/test/TestInfoStamp.java

Author: chrisdollin
Date: Thu Oct 11 14:02:00 2012
New Revision: 1397056

URL: http://svn.apache.org/viewvc?rev=1397056&view=rev
Log:
Possibly fix date-related timestamp failure test.

Modified:
    jena/Scratch/Eyeball/trunk/src/test/java/com/hp/hpl/jena/eyeball/sign/test/TestInfoStamp.java

Modified: jena/Scratch/Eyeball/trunk/src/test/java/com/hp/hpl/jena/eyeball/sign/test/TestInfoStamp.java
URL: http://svn.apache.org/viewvc/jena/Scratch/Eyeball/trunk/src/test/java/com/hp/hpl/jena/eyeball/sign/test/TestInfoStamp.java?rev=1397056&r1=1397055&r2=1397056&view=diff
==============================================================================
--- jena/Scratch/Eyeball/trunk/src/test/java/com/hp/hpl/jena/eyeball/sign/test/TestInfoStamp.java (original)
+++ jena/Scratch/Eyeball/trunk/src/test/java/com/hp/hpl/jena/eyeball/sign/test/TestInfoStamp.java Thu Oct 11 14:02:00 2012
@@ -48,7 +48,7 @@ import com.hp.hpl.jena.rdf.model.*;
             "_x eye:assumed 'ABC'; _x eye:checked 'DEF'; _x eye:version '%v'; _x eye:comment '%c'"
             .replaceAll( "%v", versionString ).replaceAll( "%c", commentString );
         InfoStamp i = new InfoStamp( resourceInModel( resourceString ) ); 
-        Calendar now = Calendar.getInstance();
+        Calendar now = Calendar.getInstance(); now.set(Calendar.MILLISECOND, 0);
         Resource root = i.stamp( now );
         Model stamp = root.getModel();
         Literal dateLiteral = ModelFactory.createDefaultModel().createTypedLiteral( now );