diff options
author | mcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-03 14:56:21 +0000 |
---|---|---|
committer | mcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-03 14:56:21 +0000 |
commit | 82de12de0ee327ab007495aae903cac23a0e124e (patch) | |
tree | 4dba52606b39c4048cca7ae671449000fc3b6fa6 /java/sca/modules/implementation-node-runtime/src | |
parent | e7f7f7e51890bf24f540834ead4762707f1aaf09 (diff) |
Converted unit tests from JUnit 3 to JUnit 4
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@722915 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/implementation-node-runtime/src')
-rw-r--r-- | java/sca/modules/implementation-node-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/NodeImplementationTestCase.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/java/sca/modules/implementation-node-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/NodeImplementationTestCase.java b/java/sca/modules/implementation-node-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/NodeImplementationTestCase.java index 8e016054c4..6845dd679c 100644 --- a/java/sca/modules/implementation-node-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/NodeImplementationTestCase.java +++ b/java/sca/modules/implementation-node-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/NodeImplementationTestCase.java @@ -18,34 +18,36 @@ */ package org.apache.tuscany.sca.implementation.node; -import junit.framework.TestCase; - 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.After; +import org.junit.Before; +import org.junit.Test; /** * Test case for node component implementations. * * @version $Rev$ $Date$ */ -public class NodeImplementationTestCase extends TestCase { +public class NodeImplementationTestCase { private Node node; - @Override - protected void setUp() throws Exception { + @Before + public void setUp() throws Exception { String contribution = ContributionLocationHelper.getContributionLocation(getClass()); node = NodeFactory.newInstance().createNode("TestNode.composite", new Contribution("test", contribution)); node.start(); } - @Override - protected void tearDown() throws Exception { + @After + public void tearDown() throws Exception { node.stop(); } + @Test public void testNode() { } |