diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2012-08-16 07:58:12 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2012-08-16 07:58:12 +0000 |
commit | 1e1a61f7bb5c926ef1aabafa14f114d636b12699 (patch) | |
tree | 01903b343db8d03ae1ac182b6c38ac589bdbd16f /sca-java-2.x/trunk | |
parent | abce349b02e91da18774be91a35d8507cc01896c (diff) |
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
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1373746 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/RESTReferenceTestCase.java | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/RESTReferenceTestCase.java b/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/RESTReferenceTestCase.java index a2cc984f77..de11033d15 100644 --- a/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/RESTReferenceTestCase.java +++ b/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/RESTReferenceTestCase.java @@ -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(); } |