cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1552446 - in /cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs: JAXRS20ClientServerBookTest.java JAXRSAsyncClientTest.java
Date Thu, 19 Dec 2013 22:25:01 GMT
Author: sergeyb
Date: Thu Dec 19 22:25:00 2013
New Revision: 1552446

URL: http://svn.apache.org/r1552446
Log:
Adding optional delays to async tests

Modified:
    cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRS20ClientServerBookTest.java
    cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java

Modified: cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRS20ClientServerBookTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRS20ClientServerBookTest.java?rev=1552446&r1=1552445&r2=1552446&view=diff
==============================================================================
--- cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRS20ClientServerBookTest.java
(original)
+++ cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRS20ClientServerBookTest.java
Thu Dec 19 22:25:00 2013
@@ -57,6 +57,7 @@ import org.apache.cxf.jaxrs.provider.JAX
 import org.apache.cxf.systest.jaxrs.BookStore.BookInfo;
 import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
 
+import org.junit.Before;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
@@ -69,6 +70,14 @@ public class JAXRS20ClientServerBookTest
                    launchServer(BookServer20.class, true));
     }
     
+    @Before
+    public void setUp() throws Exception {
+        String property = System.getProperty("test.delay");
+        if (property != null) {
+            Thread.sleep(Long.valueOf(property));
+        }
+    }
+    
     @Test
     public void testGetGenericBook() throws Exception {
         String address = "http://localhost:" + PORT + "/bookstore/genericbooks/123";

Modified: cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java?rev=1552446&r1=1552445&r2=1552446&view=diff
==============================================================================
--- cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java
(original)
+++ cxf/trunk/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/JAXRSAsyncClientTest.java
Thu Dec 19 22:25:00 2013
@@ -46,6 +46,7 @@ import org.apache.cxf.jaxrs.client.WebCl
 import org.apache.cxf.jaxrs.model.AbstractResourceInfo;
 import org.apache.cxf.testutil.common.AbstractBusClientServerTestBase;
 
+import org.junit.Before;
 import org.junit.BeforeClass;
 import org.junit.Ignore;
 import org.junit.Test;
@@ -61,6 +62,14 @@ public class JAXRSAsyncClientTest extend
         createStaticBus();
     }
     
+    @Before
+    public void setUp() throws Exception {
+        String property = System.getProperty("test.delay");
+        if (property != null) {
+            Thread.sleep(Long.valueOf(property));
+        }
+    }
+    
     @Test
     @Ignore
     public void testRetrieveBookCustomMethodAsyncSync() throws Exception {



Mime
View raw message