cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r1023409 - /cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/JAXWSBindingTest.java
Date Sun, 17 Oct 2010 02:28:04 GMT
Author: bimargulies
Date: Sun Oct 17 02:28:04 2010
New Revision: 1023409

URL: http://svn.apache.org/viewvc?rev=1023409&view=rev
Log:
make a test a bit easier to debug

Modified:
    cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/JAXWSBindingTest.java

Modified: cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/JAXWSBindingTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/JAXWSBindingTest.java?rev=1023409&r1=1023408&r2=1023409&view=diff
==============================================================================
--- cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/JAXWSBindingTest.java
(original)
+++ cxf/trunk/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/JAXWSBindingTest.java
Sun Oct 17 02:28:04 2010
@@ -21,6 +21,7 @@ package org.apache.cxf.tools.wsdlto.jaxw
 import java.io.File;
 import java.io.FileInputStream;
 
+import org.apache.cxf.helpers.FileUtils;
 import org.apache.cxf.helpers.IOUtils;
 import org.apache.cxf.tools.common.ProcessorTestBase;
 import org.apache.cxf.tools.common.ToolConstants;
@@ -62,6 +63,7 @@ public class JAXWSBindingTest extends Pr
         String path = "/org/apache/cxf/tools/fortest/date";
         File sei = new File(output, path + "/EchoDate.java");
         assertTrue(sei.exists());
-        assertTrue(IOUtils.toString(new FileInputStream(sei)).indexOf("java.util.Date") !=
-1);
+        String seiContent = FileUtils.getStringFromFile(sei);
+        assertTrue(seiContent.indexOf("java.util.Date") != -1);
     }
 }
\ No newline at end of file



Mime
View raw message