You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by rf...@apache.org on 2008/07/21 20:08:01 UTC

svn commit: r678521 - /tuscany/java/sca/itest/recursive/src/test/java/test/OuterTestCase.java

Author: rfeng
Date: Mon Jul 21 11:08:01 2008
New Revision: 678521

URL: http://svn.apache.org/viewvc?rev=678521&view=rev
Log:
Use the @Ignore("JIRA-#") pattern to capture the test failure

Modified:
    tuscany/java/sca/itest/recursive/src/test/java/test/OuterTestCase.java

Modified: tuscany/java/sca/itest/recursive/src/test/java/test/OuterTestCase.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/itest/recursive/src/test/java/test/OuterTestCase.java?rev=678521&r1=678520&r2=678521&view=diff
==============================================================================
--- tuscany/java/sca/itest/recursive/src/test/java/test/OuterTestCase.java (original)
+++ tuscany/java/sca/itest/recursive/src/test/java/test/OuterTestCase.java Mon Jul 21 11:08:01 2008
@@ -18,34 +18,36 @@
  */
 package test;
 
-import junit.framework.TestCase;
+import junit.framework.Assert;
 
 import org.apache.tuscany.sca.host.embedded.SCADomain;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Ignore;
+import org.junit.Test;
 
-public class OuterTestCase extends TestCase {
+public class OuterTestCase {
 
     private SCADomain domain;
     private Aggregator aggregator;
 
-    @Override
-    protected void setUp() throws Exception {
+    @Before
+    public void setUp() throws Exception {
         domain = SCADomain.newInstance("Outer.composite");
         aggregator = domain.getService(Aggregator.class, "Inner");
     }
 
-    @Override
-    protected void tearDown() throws Exception {
+    @After
+    public void tearDown() throws Exception {
         domain.close();
     }
 
+    @Ignore("TUSCANY-2484")
+    @Test
     public void test() throws Exception {
-        try {
-            String result = aggregator.getAggregatedData();
-            assertTrue(result.contains("InnerSource"));
-            assertTrue(result.contains("OuterSource"));
-            System.out.println(result);
-        } catch (Throwable t) {
-            t.printStackTrace();
-        }
+        String result = aggregator.getAggregatedData();
+        Assert.assertTrue(result.contains("InnerSource"));
+        Assert.assertTrue(result.contains("OuterSource"));
+        System.out.println(result);
     }
 }