ws-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1609082 - /webservices/wss4j/trunk/ws-security-stax/src/test/java/org/apache/wss4j/stax/test/TimestampTest.java
Date Wed, 09 Jul 2014 10:27:18 GMT
Author: coheigea
Date: Wed Jul  9 10:27:17 2014
New Revision: 1609082

URL: http://svn.apache.org/r1609082
Log:
Attempt to fix some timing-based test failures

Modified:
    webservices/wss4j/trunk/ws-security-stax/src/test/java/org/apache/wss4j/stax/test/TimestampTest.java

Modified: webservices/wss4j/trunk/ws-security-stax/src/test/java/org/apache/wss4j/stax/test/TimestampTest.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/ws-security-stax/src/test/java/org/apache/wss4j/stax/test/TimestampTest.java?rev=1609082&r1=1609081&r2=1609082&view=diff
==============================================================================
--- webservices/wss4j/trunk/ws-security-stax/src/test/java/org/apache/wss4j/stax/test/TimestampTest.java
(original)
+++ webservices/wss4j/trunk/ws-security-stax/src/test/java/org/apache/wss4j/stax/test/TimestampTest.java
Wed Jul  9 10:27:17 2014
@@ -80,7 +80,7 @@ public class TimestampTest extends Abstr
 
             Assert.assertTrue(gregorianCalendarCreated.before(gregorianCalendarExpires));
             GregorianCalendar now = new GregorianCalendar();
-            Assert.assertTrue(now.after(gregorianCalendarCreated));
+            Assert.assertTrue(!now.before(gregorianCalendarCreated));
             Assert.assertTrue(now.before(gregorianCalendarExpires));
 
             gregorianCalendarCreated.add(Calendar.SECOND, 301);
@@ -157,7 +157,7 @@ public class TimestampTest extends Abstr
 
             Assert.assertTrue(gregorianCalendarCreated.before(gregorianCalendarExpires));
             GregorianCalendar now = new GregorianCalendar();
-            Assert.assertTrue(now.after(gregorianCalendarCreated));
+            Assert.assertTrue(!now.before(gregorianCalendarCreated));
             Assert.assertTrue(now.before(gregorianCalendarExpires));
 
             gregorianCalendarCreated.add(Calendar.SECOND, 3601);
@@ -190,7 +190,7 @@ public class TimestampTest extends Abstr
             transformer.transform(new DOMSource(securedDocument), new StreamResult(baos));
         }
 
-        Thread.sleep(1000);
+        Thread.sleep(1500);
 
         //done timestamp; now test timestamp-verification:
         {
@@ -229,7 +229,7 @@ public class TimestampTest extends Abstr
             transformer.transform(new DOMSource(securedDocument), new StreamResult(baos));
         }
 
-        Thread.sleep(1000);
+        Thread.sleep(1500);
 
         //done timestamp; now test timestamp-verification:
         {
@@ -408,7 +408,7 @@ public class TimestampTest extends Abstr
             transformer.transform(new DOMSource(securedDocument), new StreamResult(baos));
         }
 
-        Thread.sleep(1000);
+        Thread.sleep(1500);
 
         //done timestamp; now test timestamp-verification:
         {
@@ -627,7 +627,7 @@ public class TimestampTest extends Abstr
 
             Assert.assertTrue(gregorianCalendarCreated.before(gregorianCalendarExpires));
             GregorianCalendar now = new GregorianCalendar();
-            Assert.assertTrue(now.after(gregorianCalendarCreated));
+            Assert.assertTrue(!now.before(gregorianCalendarCreated));
             Assert.assertTrue(now.before(gregorianCalendarExpires));
 
             gregorianCalendarCreated.add(Calendar.SECOND, 301);



Mime
View raw message