diff options
author | mcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-03 15:13:34 +0000 |
---|---|---|
committer | mcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68> | 2008-12-03 15:13:34 +0000 |
commit | 4aa9ea73c7b50254d01cafb82fe91e50f5da933b (patch) | |
tree | 242f8b818730c37bf7afbcb3faf2bb46a8a349fd /java/sca/modules/policy/src/test | |
parent | eefaf0b30363be2ad99c144346c88e4ccc7c4680 (diff) |
Converted unit tests from JUnit 3 to JUnit 4
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@722925 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/policy/src/test')
-rw-r--r-- | java/sca/modules/policy/src/test/java/org/apache/tuscany/sca/policy/PolicyFactoryTestCase.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/java/sca/modules/policy/src/test/java/org/apache/tuscany/sca/policy/PolicyFactoryTestCase.java b/java/sca/modules/policy/src/test/java/org/apache/tuscany/sca/policy/PolicyFactoryTestCase.java index 636ff5ab45..2775c4ac71 100644 --- a/java/sca/modules/policy/src/test/java/org/apache/tuscany/sca/policy/PolicyFactoryTestCase.java +++ b/java/sca/modules/policy/src/test/java/org/apache/tuscany/sca/policy/PolicyFactoryTestCase.java @@ -18,30 +18,35 @@ */ package org.apache.tuscany.sca.policy; +import static org.junit.Assert.assertEquals; + import javax.xml.namespace.QName; -import junit.framework.TestCase; +import org.junit.Before; +import org.junit.Test; /** * Test building of policy model instances using the policy factory. * * @version $Rev$ $Date$ */ -public class PolicyFactoryTestCase extends TestCase { +public class PolicyFactoryTestCase { PolicyFactory factory; - @Override + @Before public void setUp() throws Exception { factory = new DefaultPolicyFactory(); } + @Test public void testCreateIntent() { Intent intent = factory.createIntent(); intent.setName(new QName("http://test", "reliability")); assertEquals(intent.getName(), new QName("http://test", "reliability")); } + @Test public void testCreatePolicySet() { PolicySet policySet = factory.createPolicySet(); policySet.setName(new QName("http://test", "reliability")); |