You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kato-commits@incubator.apache.org by sp...@apache.org on 2009/06/19 09:47:54 UTC

svn commit: r786432 - /incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/image/AbstractHProfTestCase.java

Author: spoole
Date: Fri Jun 19 09:47:53 2009
New Revision: 786432

URL: http://svn.apache.org/viewvc?rev=786432&view=rev
Log:
updated testcase helper to decode testcase url locations. On windows you get %20's  in the path name which need to be converted back into spaces

Modified:
    incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/image/AbstractHProfTestCase.java

Modified: incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/image/AbstractHProfTestCase.java
URL: http://svn.apache.org/viewvc/incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/image/AbstractHProfTestCase.java?rev=786432&r1=786431&r2=786432&view=diff
==============================================================================
--- incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/image/AbstractHProfTestCase.java (original)
+++ incubator/kato/branches/experimental/maven_restructure/org.apache.kato/kato.hprof.api/src/test/java/test/apache/kato/hprof/image/AbstractHProfTestCase.java Fri Jun 19 09:47:53 2009
@@ -36,6 +36,8 @@
 	public  File getFile(String fileName) {
 		URL u=getClass().getResource(fileName);
 		String path=u.getPath();
+		path=java.net.URLDecoder.decode(path);
+		
 		File realFile=new File(path);
 		return realFile;
 	}