Author: mcombellack
Date: Wed Dec  3 06:56:21 2008
New Revision: 722915

URL: http://svn.apache.org/viewvc?rev=722915&view=rev
Log:
Converted unit tests from JUnit 3 to JUnit 4

Modified:
    
tuscany/java/sca/modules/implementation-node-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/NodeImplementationTestCase.java

Modified: 
tuscany/java/sca/modules/implementation-node-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/NodeImplementationTestCase.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/modules/implementation-node-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/NodeImplementationTestCase.java?rev=722915&r1=722914&r2=722915&view=diff
==============================================================================
--- 
tuscany/java/sca/modules/implementation-node-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/NodeImplementationTestCase.java
 (original)
+++ 
tuscany/java/sca/modules/implementation-node-runtime/src/test/java/org/apache/tuscany/sca/implementation/node/NodeImplementationTestCase.java
 Wed Dec  3 06:56:21 2008
@@ -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() {
     }
 


Reply via email to