You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ws.apache.org by ve...@apache.org on 2011/04/19 08:14:27 UTC

svn commit: r1094864 - /webservices/commons/trunk/modules/axiom/modules/axiom-testutils/src/main/java/org/apache/axiom/testutils/stax/XMLStreamReaderComparator.java

Author: veithen
Date: Tue Apr 19 06:14:27 2011
New Revision: 1094864

URL: http://svn.apache.org/viewvc?rev=1094864&view=rev
Log:
Improved failure reporting in XMLStreamReaderComparator.

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-testutils/src/main/java/org/apache/axiom/testutils/stax/XMLStreamReaderComparator.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-testutils/src/main/java/org/apache/axiom/testutils/stax/XMLStreamReaderComparator.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-testutils/src/main/java/org/apache/axiom/testutils/stax/XMLStreamReaderComparator.java?rev=1094864&r1=1094863&r2=1094864&view=diff
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-testutils/src/main/java/org/apache/axiom/testutils/stax/XMLStreamReaderComparator.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-testutils/src/main/java/org/apache/axiom/testutils/stax/XMLStreamReaderComparator.java Tue Apr 19 06:14:27 2011
@@ -327,7 +327,7 @@ public class XMLStreamReaderComparator e
                 }
                 fail("Expected reader to throw IllegalStateException or NoSuchElementException");
             } else {
-                assertEquals(expectedNextEvent, actual.next());
+                assertEquals("Event type at " + getLocation(), expectedNextEvent, actual.next());
             }
         };
     }