[Httpunit-commit] SF.net SVN: httpunit: [927] trunk/httpunit/src/com/meterware/servletunit/ Servle
Brought to you by:
russgold
|
From: <wol...@us...> - 2008-04-19 10:24:29
|
Revision: 927
http://httpunit.svn.sourceforge.net/httpunit/?rev=927&view=rev
Author: wolfgang_fahl
Date: 2008-04-19 03:24:27 -0700 (Sat, 19 Apr 2008)
Log Message:
-----------
PATCH proposal [ 1592532 ] Invalid ServletUnitServletContext#getResource(String path)
by Timo Westk?\195?\164mper
add as comment while waiting for a JUnit testcase to be supplied
Modified Paths:
--------------
trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java
Modified: trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java
===================================================================
--- trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java 2008-04-19 10:19:36 UTC (rev 926)
+++ trunk/httpunit/src/com/meterware/servletunit/ServletUnitServletContext.java 2008-04-19 10:24:27 UTC (rev 927)
@@ -115,6 +115,9 @@
public java.net.URL getResource( String path ) {
try {
File resourceFile = _application.getResourceFile( path );
+ // PATCH proposal [ 1592532 ] Invalid ServletUnitServletContext#getResource(String path)
+ // by Timo Westk\xE4mper
+ // return !resourceFile.exists() ? null : resourceFile.toURL();
return resourceFile == null ? null : resourceFile.toURL();
} catch (MalformedURLException e) {
return null;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|