From 1a544af727c044f2a935eba44e5cf7bcb6572f17 Mon Sep 17 00:00:00 2001 From: antelder Date: Wed, 19 Nov 2008 13:26:58 +0000 Subject: Fix compile error in testcase git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@718955 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/assembly/xml/AnyElementReadWriteTestCase.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'java/sca/modules') diff --git a/java/sca/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/AnyElementReadWriteTestCase.java b/java/sca/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/AnyElementReadWriteTestCase.java index abf0269c0f..95a3b86235 100644 --- a/java/sca/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/AnyElementReadWriteTestCase.java +++ b/java/sca/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/AnyElementReadWriteTestCase.java @@ -28,10 +28,8 @@ import javax.xml.stream.XMLStreamReader; import junit.framework.TestCase; import org.apache.tuscany.sca.assembly.Composite; -import org.apache.tuscany.sca.contribution.ModelFactoryExtensionPoint; import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor; import org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessorExtensionPoint; -import org.apache.tuscany.sca.contribution.processor.ValidatingXMLInputFactory; import org.apache.tuscany.sca.core.DefaultExtensionPointRegistry; import org.apache.tuscany.sca.core.ExtensionPointRegistry; import org.junit.Test; @@ -44,9 +42,8 @@ public class AnyElementReadWriteTestCase extends TestCase { @Override public void setUp() throws Exception { - ExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); - ModelFactoryExtensionPoint modelFactories = extensionPoints.getExtensionPoint(ModelFactoryExtensionPoint.class); - inputFactory = modelFactories.getFactory(ValidatingXMLInputFactory.class); + ExtensionPointRegistry extensionPoints = new DefaultExtensionPointRegistry(); + inputFactory = XMLInputFactory.newInstance(); StAXArtifactProcessorExtensionPoint staxProcessors = extensionPoints .getExtensionPoint(StAXArtifactProcessorExtensionPoint.class); -- cgit v1.2.3