Author: veithen
Date: Sat Nov 21 20:25:14 2015
New Revision: 1715566

URL: http://svn.apache.org/viewvc?rev=1715566&view=rev
Log:
Include xml-truth in code-coverage and increase coverage.

Modified:
    webservices/axiom/trunk/code-coverage/pom.xml
    
webservices/axiom/trunk/testing/xml-truth/src/test/java/org/apache/axiom/truth/xml/XMLSubjectTest.java

Modified: webservices/axiom/trunk/code-coverage/pom.xml
URL: 
http://svn.apache.org/viewvc/webservices/axiom/trunk/code-coverage/pom.xml?rev=1715566&r1=1715565&r2=1715566&view=diff
==============================================================================
--- webservices/axiom/trunk/code-coverage/pom.xml (original)
+++ webservices/axiom/trunk/code-coverage/pom.xml Sat Nov 21 20:25:14 2015
@@ -173,6 +173,25 @@
 
         <dependency>
             <groupId>${project.groupId}</groupId>
+            <artifactId>xml-truth</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>xml-truth</artifactId>
+            <version>${project.version}</version>
+            <classifier>sources</classifier>
+        </dependency>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>xml-truth</artifactId>
+            <version>${project.version}</version>
+            <classifier>jacoco</classifier>
+            <type>exec</type>
+        </dependency>
+
+        <dependency>
+            <groupId>${project.groupId}</groupId>
             <artifactId>old-tests</artifactId>
             <version>${project.version}</version>
             <classifier>jacoco</classifier>

Modified: 
webservices/axiom/trunk/testing/xml-truth/src/test/java/org/apache/axiom/truth/xml/XMLSubjectTest.java
URL: 
http://svn.apache.org/viewvc/webservices/axiom/trunk/testing/xml-truth/src/test/java/org/apache/axiom/truth/xml/XMLSubjectTest.java?rev=1715566&r1=1715565&r2=1715566&view=diff
==============================================================================
--- 
webservices/axiom/trunk/testing/xml-truth/src/test/java/org/apache/axiom/truth/xml/XMLSubjectTest.java
 (original)
+++ 
webservices/axiom/trunk/testing/xml-truth/src/test/java/org/apache/axiom/truth/xml/XMLSubjectTest.java
 Sat Nov 21 20:25:14 2015
@@ -39,4 +39,21 @@ public class XMLSubjectTest {
                 .ignoringRedundantNamespaceDeclarations()
                 .hasSameContentAs("<a xmlns:p='#1'><b/></a>");
     }
+    
+    @Test
+    public void testIgnoringNamespaceDeclarationsAndPrefixes() {
+        assertAbout(xml())
+                .that("<p:a xmlns:p='urn:ns'/>")
+                .ignoringNamespacePrefixes()
+                .ignoringNamespaceDeclarations()
+                .hasSameContentAs("<a xmlns='urn:ns'/>");
+    }
+    
+    @Test
+    public void testIgnoringComments() {
+        assertAbout(xml())
+                .that("<a><!-- comment --></a>")
+                .ignoringComments()
+                .hasSameContentAs("<a/>");
+    }
 }


Reply via email to