diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-01-17 01:37:35 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-01-17 01:37:35 +0000 |
commit | 8d2d28410017a059daed1f4d09419dad554a293a (patch) | |
tree | e958e97fb56ddaed7038907063ecddf745d9f57f /branches/sca-java-1.x/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyAttributeTestCase.java | |
parent | 6b0cf15e75164724b31bc7194b1663daa6d3268a (diff) |
TUSCANY-2463 - Last adjustments to test processors to support the extension attribute wrapper
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@735201 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyAttributeTestCase.java')
-rw-r--r-- | branches/sca-java-1.x/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyAttributeTestCase.java | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/branches/sca-java-1.x/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyAttributeTestCase.java b/branches/sca-java-1.x/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyAttributeTestCase.java index 826e39baab..6877dcdb34 100644 --- a/branches/sca-java-1.x/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyAttributeTestCase.java +++ b/branches/sca-java-1.x/modules/assembly-xml/src/test/java/org/apache/tuscany/sca/assembly/xml/ReadWriteAnyAttributeTestCase.java @@ -47,19 +47,17 @@ import org.junit.Test; */ public class ReadWriteAnyAttributeTestCase { - private static final QName ATTRIBUTE = new QName("http://test", "customAttribute"); + private static final QName EXTENDED_ATTRIBUTE = new QName("http://test", "customAttribute"); - // implementation.java for CalculatorServiceComponent appears in a strange place as the - // java implementation extension is not loaded and hence they are loaded as any elements private static final String XML = "<?xml version='1.0' encoding='UTF-8'?>"+ "<composite xmlns=\"http://www.osoa.org/xmlns/sca/1.0\" " + "xmlns:ns1=\"http://www.osoa.org/xmlns/sca/1.0\" " + "targetNamespace=\"http://calc\" " + "name=\"Calculator\">"+ - "<component name=\"AddServiceComponent\" xmlns:test=\"http://test\" test:customAttribute=\"customValue\">"+ - "<implementation.java class=\"calculator.AddServiceImpl\" />"+ - "</component>"+ - "</composite>"; + "<component name=\"AddServiceComponent\" xmlns:test=\"http://test\" test:customAttribute=\"customValue\">"+ + "<implementation.java class=\"calculator.AddServiceImpl\" />"+ + "</component>"+ + "</composite>"; private XMLInputFactory inputFactory; private ExtensibleStAXArtifactProcessor staxProcessor; @@ -91,7 +89,6 @@ public class ReadWriteAnyAttributeTestCase { * @throws Exception */ @Test - @Ignore public void testReadWriteCompositeWithAttributeProcessor() throws Exception { init(new TestAttributeProcessor()); @@ -104,8 +101,8 @@ public class ReadWriteAnyAttributeTestCase { staxProcessor.write(composite, bos); // used for debug comparison - System.out.println(XML); - System.out.println(bos.toString()); + // System.out.println(XML); + // System.out.println(bos.toString()); assertEquals(XML, bos.toString()); } @@ -116,7 +113,6 @@ public class ReadWriteAnyAttributeTestCase { * @throws Exception */ @Test - @Ignore public void testDefaultReadWriteComposite() throws Exception { init(null); @@ -129,8 +125,8 @@ public class ReadWriteAnyAttributeTestCase { staxProcessor.write(composite, bos); // used for debug comparison - System.out.println(XML); - System.out.println(bos.toString()); + // System.out.println(XML); + // System.out.println(bos.toString()); assertEquals(XML, bos.toString()); } |