[ https://issues.apache.org/jira/browse/WICKET-2815?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-2815. ------------------------------------- Resolution: Incomplete I think the reporter suggest to use Tomcat's/Jetty's ContextHandler to get the real path for a resource. WicketTester doesn't web container like Tomcat or Jetty so this improvement is not an option. > public String getRealPath(String name) in public class MockServletContext > implements ServletContext > ---------------------------------------------------------------------------------------------------- > > Key: WICKET-2815 > URL: https://issues.apache.org/jira/browse/WICKET-2815 > Project: Wicket > Issue Type: Improvement > Environment: unit testing with eclipse > Reporter: adrian pascuts > Labels: features > Original Estimate: 1m > Remaining Estimate: 1m > > try > { > Resource resource=ContextHandler.this.getResource(path); > if(resource!=null) > { > File file = resource.getFile(); > if (file!=null) > return file.getCanonicalPath(); > } > } > catch (Exception e) > { > Log.ignore(e); > } > > return null; -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira