summaryrefslogtreecommitdiffstats
path: root/sandbox/slaws/modules/domain-model-xml/src/test/java/org/apache/tuscany/sca/domain/model/xml/ReadTestCase.java
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/slaws/modules/domain-model-xml/src/test/java/org/apache/tuscany/sca/domain/model/xml/ReadTestCase.java')
-rw-r--r--sandbox/slaws/modules/domain-model-xml/src/test/java/org/apache/tuscany/sca/domain/model/xml/ReadTestCase.java71
1 files changed, 0 insertions, 71 deletions
diff --git a/sandbox/slaws/modules/domain-model-xml/src/test/java/org/apache/tuscany/sca/domain/model/xml/ReadTestCase.java b/sandbox/slaws/modules/domain-model-xml/src/test/java/org/apache/tuscany/sca/domain/model/xml/ReadTestCase.java
deleted file mode 100644
index 42f42cd2c5..0000000000
--- a/sandbox/slaws/modules/domain-model-xml/src/test/java/org/apache/tuscany/sca/domain/model/xml/ReadTestCase.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.tuscany.sca.domain.model.xml;
-
-import java.io.InputStream;
-
-import javax.xml.stream.XMLInputFactory;
-import javax.xml.stream.XMLOutputFactory;
-import javax.xml.stream.XMLStreamReader;
-
-import junit.framework.TestCase;
-
-import org.apache.tuscany.sca.assembly.AssemblyFactory;
-import org.apache.tuscany.sca.assembly.DefaultAssemblyFactory;
-import org.apache.tuscany.sca.contribution.DefaultContributionFactory;
-import org.apache.tuscany.sca.contribution.DefaultModelFactoryExtensionPoint;
-import org.apache.tuscany.sca.contribution.processor.DefaultStAXArtifactProcessorExtensionPoint;
-import org.apache.tuscany.sca.contribution.processor.ExtensibleStAXArtifactProcessor;
-import org.apache.tuscany.sca.interfacedef.InterfaceContractMapper;
-import org.apache.tuscany.sca.interfacedef.impl.InterfaceContractMapperImpl;
-import org.apache.tuscany.sca.policy.DefaultPolicyFactory;
-import org.apache.tuscany.sca.policy.PolicyFactory;
-
-/**
- * Test reading SCA XML assemblies.
- *
- * @version $Rev: 615735 $ $Date: 2008-01-28 06:13:25 +0000 (Mon, 28 Jan 2008) $
- */
-public class ReadTestCase extends TestCase {
-
- private XMLInputFactory inputFactory;
- private DefaultStAXArtifactProcessorExtensionPoint staxProcessors;
- private ExtensibleStAXArtifactProcessor staxProcessor;
-
- @Override
- public void setUp() throws Exception {
-
- inputFactory = XMLInputFactory.newInstance();
- staxProcessors = new DefaultStAXArtifactProcessorExtensionPoint(new DefaultModelFactoryExtensionPoint());
- staxProcessor = new ExtensibleStAXArtifactProcessor(staxProcessors, XMLInputFactory.newInstance(), XMLOutputFactory.newInstance());
- }
-
- @Override
- public void tearDown() throws Exception {
- }
-
- public void testReadDomain() throws Exception {
- InputStream is = getClass().getResourceAsStream("test.domain");
- DomainProcessor compositeReader = new DomainProcessor(staxProcessor);
- XMLStreamReader reader = inputFactory.createXMLStreamReader(is);
- assertNotNull(compositeReader.read(reader));
- is.close();
- }
-}