diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-21 18:08:01 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-21 18:08:01 +0000 |
commit | f1d04ae9c2fa7e3f55dab43187b5015e17533e51 (patch) | |
tree | 31b3997d9d5f57a2490f1a76c4d5cebd2338ae5b /java/sca | |
parent | c6cbbc66ce949a9ea9db51387da055f375e12b98 (diff) |
Use the @Ignore("JIRA-#") pattern to capture the test failure
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@678521 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca')
-rw-r--r-- | java/sca/itest/recursive/src/test/java/test/OuterTestCase.java | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/java/sca/itest/recursive/src/test/java/test/OuterTestCase.java b/java/sca/itest/recursive/src/test/java/test/OuterTestCase.java index 17de5ca4a8..6e95f5808b 100644 --- a/java/sca/itest/recursive/src/test/java/test/OuterTestCase.java +++ b/java/sca/itest/recursive/src/test/java/test/OuterTestCase.java @@ -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); } } |