abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r1173856 - /abdera/abdera2/test/src/main/java/org/apache/abdera2/test/common/xml/XmlTest.java
Date Wed, 21 Sep 2011 21:02:41 GMT
Author: jmsnell
Date: Wed Sep 21 21:02:41 2011
New Revision: 1173856

URL: http://svn.apache.org/viewvc?rev=1173856&view=rev
Log:
doh!

Modified:
    abdera/abdera2/test/src/main/java/org/apache/abdera2/test/common/xml/XmlTest.java

Modified: abdera/abdera2/test/src/main/java/org/apache/abdera2/test/common/xml/XmlTest.java
URL: http://svn.apache.org/viewvc/abdera/abdera2/test/src/main/java/org/apache/abdera2/test/common/xml/XmlTest.java?rev=1173856&r1=1173855&r2=1173856&view=diff
==============================================================================
--- abdera/abdera2/test/src/main/java/org/apache/abdera2/test/common/xml/XmlTest.java (original)
+++ abdera/abdera2/test/src/main/java/org/apache/abdera2/test/common/xml/XmlTest.java Wed
Sep 21 21:02:41 2011
@@ -2,11 +2,12 @@ package org.apache.abdera2.test.common.x
 
 import static org.junit.Assert.assertEquals;
 
+import java.io.StringReader;
+
 import org.apache.abdera2.common.xml.XMLVersion;
 import org.apache.abdera2.common.xml.XmlRestrictedCharReader;
 import org.junit.Test;
 
-import com.sun.xml.internal.messaging.saaj.util.CharReader;
 
 public class XmlTest {
 
@@ -15,9 +16,9 @@ public class XmlTest {
     try {
       char[] data = {0x0,'<','a',0x0, '/', '>'};
       
-      CharReader cr = new CharReader(data,0,5);
+      StringReader sr = new StringReader(new String(data));
       XmlRestrictedCharReader r = 
-        new XmlRestrictedCharReader(cr,XMLVersion.XML10);
+        new XmlRestrictedCharReader(sr,XMLVersion.XML10);
       char[] buf = new char[6];
       int n = r.read(buf);
       assertEquals(4,n);



Mime
View raw message