cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anathan...@apache.org
Subject svn commit: r1154387 - /cocoon/cocoon3/trunk/cocoon-sax/src/test/java/org/apache/cocoon/sax/component/SAXGeneratorTest.java
Date Fri, 05 Aug 2011 21:48:55 GMT
Author: anathaniel
Date: Fri Aug  5 21:48:55 2011
New Revision: 1154387

URL: http://svn.apache.org/viewvc?rev=1154387&view=rev
Log:
Replace deprecated File.toURL by File.toURI.toURL

Modified:
    cocoon/cocoon3/trunk/cocoon-sax/src/test/java/org/apache/cocoon/sax/component/SAXGeneratorTest.java

Modified: cocoon/cocoon3/trunk/cocoon-sax/src/test/java/org/apache/cocoon/sax/component/SAXGeneratorTest.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sax/src/test/java/org/apache/cocoon/sax/component/SAXGeneratorTest.java?rev=1154387&r1=1154386&r2=1154387&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sax/src/test/java/org/apache/cocoon/sax/component/SAXGeneratorTest.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-sax/src/test/java/org/apache/cocoon/sax/component/SAXGeneratorTest.java
Fri Aug  5 21:48:55 2011
@@ -87,7 +87,7 @@ public class SAXGeneratorTest {
 
     @Test
     public void execURLGenerator() throws Exception {
-        runPipeline(new XMLGenerator(createXMLFile(VALID_XML_STRING).toURL()), VALID_XML_STRING);
+        runPipeline(new XMLGenerator(createXMLFile(VALID_XML_STRING).toURI().toURL()), VALID_XML_STRING);
     }
 
     @Test
@@ -95,7 +95,7 @@ public class SAXGeneratorTest {
         XMLGenerator generator = new XMLGenerator();
 
         Map<String, Object> configurationParams = new HashMap<String, Object>();
-        configurationParams.put("source", createXMLFile(VALID_XML_STRING).toURL());
+        configurationParams.put("source", createXMLFile(VALID_XML_STRING).toURI().toURL());
         generator.setConfiguration(configurationParams);
 
         runPipeline(generator, VALID_XML_STRING);



Mime
View raw message