mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
Fixing freemarker tests when path included a space
WW-2452 git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@628274 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
*/
|
||||
package org.apache.struts2.views.freemarker;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
|
||||
@@ -102,8 +103,8 @@ public class FreeMarkerResultTest extends StrutsTestCase {
|
||||
invocation = new MockActionInvocation();
|
||||
invocation.setStack(stack);
|
||||
invocation.setInvocationContext(context);
|
||||
servletContext.setRealPath(FreeMarkerResultTest.class.getResource(
|
||||
"someFreeMarkerFile.ftl").getFile());
|
||||
servletContext.setRealPath(new File(FreeMarkerResultTest.class.getResource(
|
||||
"someFreeMarkerFile.ftl").toURI()).toURL().getFile());
|
||||
}
|
||||
|
||||
protected void tearDown() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user