diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-04 01:19:55 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-04 01:19:55 +0000 |
commit | ea934f27ae0c4de4ca7cfa8771b220b315684b3c (patch) | |
tree | 24a74e62025081080217546bdd48ce233865f5d5 /sca-java-2.x/trunk/modules/policy-transaction/src/test/java/org/apache/tuscany/sca/policy | |
parent | bfbb439e09596671c3019e3f53da16792e9b8c95 (diff) |
Providing TransactionPolicyFactory and avoiding direct access to TransactionPolicyImpl following pattern used in other tuscany modules
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@918808 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/policy-transaction/src/test/java/org/apache/tuscany/sca/policy')
-rw-r--r-- | sca-java-2.x/trunk/modules/policy-transaction/src/test/java/org/apache/tuscany/sca/policy/transaction/PolicyReadTestCase.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/policy-transaction/src/test/java/org/apache/tuscany/sca/policy/transaction/PolicyReadTestCase.java b/sca-java-2.x/trunk/modules/policy-transaction/src/test/java/org/apache/tuscany/sca/policy/transaction/PolicyReadTestCase.java index 345dbaef8e..fd3e0a7968 100644 --- a/sca-java-2.x/trunk/modules/policy-transaction/src/test/java/org/apache/tuscany/sca/policy/transaction/PolicyReadTestCase.java +++ b/sca-java-2.x/trunk/modules/policy-transaction/src/test/java/org/apache/tuscany/sca/policy/transaction/PolicyReadTestCase.java @@ -25,6 +25,8 @@ import javax.xml.stream.XMLInputFactory; import javax.xml.stream.XMLStreamReader; import org.apache.tuscany.sca.contribution.processor.ProcessorContext; +import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; +import org.apache.tuscany.sca.core.ExtensionPointRegistry; import junit.framework.TestCase; @@ -40,8 +42,8 @@ public class PolicyReadTestCase extends TestCase { } public void testPolicyReading() throws Exception { - - TransactionPolicyProcessor processor = new TransactionPolicyProcessor(null); + ExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); + TransactionPolicyProcessor processor = new TransactionPolicyProcessor(extensionPoints); URL url = getClass().getResource("/org/apache/tuscany/sca/policy/transaction/definitions.xml"); XMLInputFactory inputFactory = XMLInputFactory.newInstance(); |