You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by he...@apache.org on 2007/04/12 09:53:39 UTC

svn commit: r527824 - /struts/struts2/branches/STRUTS_2_0_X/core/src/test/java/org/apache/struts2/interceptor/ExecuteAndWaitInterceptorTest.java

Author: hermanns
Date: Thu Apr 12 00:53:39 2007
New Revision: 527824

URL: http://svn.apache.org/viewvc?view=rev&rev=527824
Log:
Unit Test fixes for failing tests in Bamboo

Modified:
    struts/struts2/branches/STRUTS_2_0_X/core/src/test/java/org/apache/struts2/interceptor/ExecuteAndWaitInterceptorTest.java

Modified: struts/struts2/branches/STRUTS_2_0_X/core/src/test/java/org/apache/struts2/interceptor/ExecuteAndWaitInterceptorTest.java
URL: http://svn.apache.org/viewvc/struts/struts2/branches/STRUTS_2_0_X/core/src/test/java/org/apache/struts2/interceptor/ExecuteAndWaitInterceptorTest.java?view=diff&rev=527824&r1=527823&r2=527824
==============================================================================
--- struts/struts2/branches/STRUTS_2_0_X/core/src/test/java/org/apache/struts2/interceptor/ExecuteAndWaitInterceptorTest.java (original)
+++ struts/struts2/branches/STRUTS_2_0_X/core/src/test/java/org/apache/struts2/interceptor/ExecuteAndWaitInterceptorTest.java Thu Apr 12 00:53:39 2007
@@ -64,7 +64,7 @@
     private Map session;
     private ExecuteAndWaitInterceptor waitInterceptor;
 
-    public void _testOneWait() throws Exception {
+    public void testOneWait() throws Exception {
         waitInterceptor.setDelay(0);
         waitInterceptor.setDelaySleepInterval(0);
 
@@ -79,7 +79,7 @@
         assertEquals("success", result2);
     }
 
-    public void _testTwoWait() throws Exception {
+    public void testTwoWait() throws Exception {
         waitInterceptor.setDelay(0);
         waitInterceptor.setDelaySleepInterval(0);
 
@@ -100,7 +100,7 @@
         assertEquals("success", result3);
     }
 
-    public void _testOneWaitWithDelay() throws Exception {
+    public void testOneWaitWithDelay() throws Exception {
         waitInterceptor.setDelay(200);
         waitInterceptor.setDelaySleepInterval(100);
 
@@ -118,7 +118,7 @@
         assertEquals("success", result2);
     }
 
-    public void _testTwoWaitWithDelay() throws Exception {
+    public void testTwoWaitWithDelay() throws Exception {
         waitInterceptor.setDelay(100);
         waitInterceptor.setDelaySleepInterval(100);
 
@@ -154,7 +154,7 @@
         String result = proxy.execute();
         long diff = System.currentTimeMillis() - before;
         assertEquals("success", result);
-        assertTrue("Job done already after 500 so there should not be such long delay", diff <= 750);
+        assertTrue("Job done already after 500 so there should not be such long delay", diff <= 1000);
     }
 
     public void testWaitDelayAndJobAlreadyDone2() throws Exception {
@@ -166,7 +166,7 @@
         String result = proxy.execute();
         long diff = System.currentTimeMillis() - before;
         assertEquals("success", result);
-        assertTrue("Job done already after 500 so there should not be such long delay", diff <= 750);
+        assertTrue("Job done already after 500 so there should not be such long delay", diff <= 1000);
     }
 
     protected ActionProxy buildProxy(String actionName) throws Exception {