Author: ruchithf
Date: Sun Feb 25 06:55:07 2007
New Revision: 511519

URL: http://svn.apache.org/viewvc?view=rev&rev=511519
Log:
Added an excluded test case for COMMONS-104

Added:
    
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAP11FaultImplConversionTest.java
Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-tests/pom.xml
    webservices/commons/trunk/modules/axiom/project.xml

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-tests/pom.xml
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/pom.xml?view=diff&rev=511519&r1=511518&r2=511519
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-tests/pom.xml 
(original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-tests/pom.xml Sun Feb 
25 06:55:07 2007
@@ -73,6 +73,10 @@
                     <includes>
                         <include>**/*Test.java</include>
                     </includes>
+                   <excludes>
+                       
<exclude>**/*SOAP11FaultImplConversionTest.java</exclude>
+                       <exclude>**/*AbstractOMSerializationTest.java</exclude>
+                   </excludes>
                 </configuration>
             </plugin>
         </plugins>

Added: 
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAP11FaultImplConversionTest.java
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAP11FaultImplConversionTest.java?view=auto&rev=511519
==============================================================================
--- 
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAP11FaultImplConversionTest.java
 (added)
+++ 
webservices/commons/trunk/modules/axiom/modules/axiom-tests/src/test/java/org/apache/axiom/soap/SOAP11FaultImplConversionTest.java
 Sun Feb 25 06:55:07 2007
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed 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.axiom.soap;
+
+import org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder;
+
+import javax.xml.stream.XMLInputFactory;
+import javax.xml.stream.XMLStreamReader;
+
+import java.io.FileInputStream;
+import java.io.InputStream;
+
+import junit.framework.TestCase;
+
+
+public class SOAP11FaultImplConversionTest extends TestCase {
+
+    private String soap11FaulXmlPath = 
"test-resources/soap/soap11/soapfault2.xml"; 
+    
+    public void testConversion() {
+        try {
+            InputStream is = new FileInputStream(soap11FaulXmlPath);
+            XMLStreamReader reader = 
XMLInputFactory.newInstance().createXMLStreamReader(is);
+            
+            SOAPEnvelope env = new StAXSOAPModelBuilder(reader, 
null).getSOAPEnvelope();
+            
+            env.build();
+
+            SOAPEnvelope env2 = new 
StAXSOAPModelBuilder(env.getXMLStreamReader(), null).getSOAPEnvelope();
+            
+            env2.build();
+            
+            env2.toString();
+            
+            System.out.println(env2);
+        } catch (Exception e) {
+            e.printStackTrace();
+            fail(e.getMessage());
+        }
+    }
+}

Modified: webservices/commons/trunk/modules/axiom/project.xml
URL: 
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/project.xml?view=diff&rev=511519&r1=511518&r2=511519
==============================================================================
--- webservices/commons/trunk/modules/axiom/project.xml (original)
+++ webservices/commons/trunk/modules/axiom/project.xml Sun Feb 25 06:55:07 2007
@@ -206,6 +206,7 @@
             <excludes>
                 <exclude>**/*SpacesTest.java</exclude>
                 <exclude>**/*AbstractOMSerializationTest.java</exclude>
+               <exclude>**/*SOAP11FaultImplConversionTest.java</exclude>
             </excludes>
             <includes>
                 <include>**/*Test.java</include>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to