summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--java/sca/modules/policy/src/test/java/org/apache/tuscany/sca/policy/PolicyFactoryTestCase.java11
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"));