You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2012/08/16 09:58:12 UTC
svn commit: r1373746 -
/tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/RESTReferenceTestCase.java
Author: antelder
Date: Thu Aug 16 07:58:12 2012
New Revision: 1373746
URL: http://svn.apache.org/viewvc?rev=1373746&view=rev
Log:
This test fails often in the jenkins builds, can't see why so fiddle about with the testcase and and a short delay before running to see if that helps
Modified:
tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/RESTReferenceTestCase.java
Modified: tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/RESTReferenceTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/RESTReferenceTestCase.java?rev=1373746&r1=1373745&r2=1373746&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/RESTReferenceTestCase.java (original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/RESTReferenceTestCase.java Thu Aug 16 07:58:12 2012
@@ -18,40 +18,40 @@
*/
package org.apache.tuscany.sca.binding.rest;
-import java.util.Arrays;
-
import junit.framework.Assert;
import org.apache.tuscany.sca.node.Contribution;
import org.apache.tuscany.sca.node.ContributionLocationHelper;
import org.apache.tuscany.sca.node.Node;
import org.apache.tuscany.sca.node.NodeFactory;
-import org.junit.AfterClass;
-import org.junit.BeforeClass;
+import org.junit.After;
+import org.junit.Before;
import org.junit.Test;
import services.echo.jaxrs.Echo;
public class RESTReferenceTestCase {
private static final String ECHO_COMPONENT_WITH_REFERENCE = "EchoClientComponent/Echo";
- private static Node node;
+ private Node node;
- @BeforeClass
- public static void setUp() throws Exception {
+ @Before
+ public void setUp() throws Exception {
try {
String contribution = ContributionLocationHelper.getContributionLocation(RESTReferenceTestCase.class);
node =
NodeFactory.newInstance().createNode("rest-reference.composite",
new Contribution("testClient", contribution));
node.start();
+
+ Thread.sleep(1000);
} catch (Exception e) {
e.printStackTrace();
}
}
- @AfterClass
- public static void tearDown() throws Exception {
+ @After
+ public void tearDown() throws Exception {
node.stop();
}