Return-Path: X-Original-To: apmail-tuscany-commits-archive@www.apache.org Delivered-To: apmail-tuscany-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E7457DCC8 for ; Thu, 16 Aug 2012 07:59:00 +0000 (UTC) Received: (qmail 78273 invoked by uid 500); 16 Aug 2012 07:59:00 -0000 Delivered-To: apmail-tuscany-commits-archive@tuscany.apache.org Received: (qmail 78188 invoked by uid 500); 16 Aug 2012 07:58:59 -0000 Mailing-List: contact commits-help@tuscany.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tuscany.apache.org Delivered-To: mailing list commits@tuscany.apache.org Received: (qmail 78172 invoked by uid 99); 16 Aug 2012 07:58:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2012 07:58:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2012 07:58:57 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 20FDA23888FE for ; Thu, 16 Aug 2012 07:58:13 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1373746 - /tuscany/sca-java-2.x/trunk/modules/binding-rest-runtime/src/test/java/org/apache/tuscany/sca/binding/rest/RESTReferenceTestCase.java Date: Thu, 16 Aug 2012 07:58:12 -0000 To: commits@tuscany.apache.org From: antelder@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120816075813.20FDA23888FE@eris.apache.org> 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(); }