From 7a550d1c324f0258ac29e5b76f84ca01f839ab58 Mon Sep 17 00:00:00 2001 From: slaws Date: Wed, 3 Jun 2009 15:07:15 +0000 Subject: Remove more cruft git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@781420 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/domain/model/xml/ReadTestCase.java | 71 ---------------------- 1 file changed, 71 deletions(-) delete mode 100644 sandbox/slaws/modules/domain-model-xml/src/test/java/org/apache/tuscany/sca/domain/model/xml/ReadTestCase.java (limited to 'sandbox/slaws/modules/domain-model-xml/src/test/java/org/apache/tuscany/sca/domain/model/xml/ReadTestCase.java') 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(); - } -} -- cgit v1.2.3