You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2010/07/16 20:41:34 UTC
svn commit: r964898 -
/cxf/branches/2.2.x-fixes/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/SourceProviderTest.java
Author: dkulp
Date: Fri Jul 16 18:41:33 2010
New Revision: 964898
URL: http://svn.apache.org/viewvc?rev=964898&view=rev
Log:
Fix test on 2.2
Modified:
cxf/branches/2.2.x-fixes/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/SourceProviderTest.java
Modified: cxf/branches/2.2.x-fixes/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/SourceProviderTest.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.2.x-fixes/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/SourceProviderTest.java?rev=964898&r1=964897&r2=964898&view=diff
==============================================================================
--- cxf/branches/2.2.x-fixes/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/SourceProviderTest.java (original)
+++ cxf/branches/2.2.x-fixes/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/provider/SourceProviderTest.java Fri Jul 16 18:41:33 2010
@@ -68,10 +68,10 @@ public class SourceProviderTest extends
StreamSource s = new StreamSource(new ByteArrayInputStream("<test/>".getBytes()));
ByteArrayOutputStream os = new ByteArrayOutputStream();
p.writeTo(s, null, null, null, null, null, os);
- assertTrue(os.toString().contains("<test/>"));
+ assertTrue(os.toString(), os.toString().contains("<test/>") || os.toString().contains("<test />"));
os = new ByteArrayOutputStream();
p.writeTo(createDomSource(), null, null, null, null, null, os);
- assertTrue(os.toString().contains("<test/>"));
+ assertTrue(os.toString(), os.toString().contains("<test/>") || os.toString().contains("<test />"));
}
@SuppressWarnings("unchecked")