jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r615962 - /jackrabbit/trunk/jackrabbit-jcr-rmi/src/test/java/org/apache/jackrabbit/rmi/xml/ImportContentHandlerTest.java
Date Mon, 28 Jan 2008 17:26:25 GMT
Author: jukka
Date: Mon Jan 28 09:26:20 2008
New Revision: 615962

URL: http://svn.apache.org/viewvc?rev=615962&view=rev
Log:
JCR-1343: Replace use of Xerces by JAXP to implement SAX DocumentHandler
    - Bugger, no Java 5 methods...

Modified:
    jackrabbit/trunk/jackrabbit-jcr-rmi/src/test/java/org/apache/jackrabbit/rmi/xml/ImportContentHandlerTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr-rmi/src/test/java/org/apache/jackrabbit/rmi/xml/ImportContentHandlerTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-rmi/src/test/java/org/apache/jackrabbit/rmi/xml/ImportContentHandlerTest.java?rev=615962&r1=615961&r2=615962&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-rmi/src/test/java/org/apache/jackrabbit/rmi/xml/ImportContentHandlerTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-rmi/src/test/java/org/apache/jackrabbit/rmi/xml/ImportContentHandlerTest.java
Mon Jan 28 09:26:20 2008
@@ -42,8 +42,8 @@
         ch.endDocument();
 
         String xml = new String(ch.getXML(), "UTF-8");
-        assertTrue(xml.contains(
-                "<foo:sample xmlns:foo=\"http://example.com/ns/foo\"/>"));
+        assertTrue(xml.indexOf(
+                "<foo:sample xmlns:foo=\"http://example.com/ns/foo\"/>") != -1);
     }
 
     private static class DummyImportContentHandler extends ImportContentHandler {



Mime
View raw message