Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.3.1
-
None
-
None
-
Patch
Description
Attached is a patch for StrutsJUnit4TestCase. It is a testcase for the improved testcase implementation
Just two notes:
#1: i have made two todos - for some reason the action does return INPUT instead of SUCCESS. This is for an elder testcase too. Not sure were this comes from
#2: I have seen a few exceptions (from the other testcases too) which I do not know where it comes from:
2011-08-10 13:12:40,363 WARN [MockServletContext.java:298] : Couldn't determine real path of resource class path resource [template_de.ftl]
java.io.FileNotFoundException: class path resource [template_de.ftl] cannot be resolved to URL because it does not exist
at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:179)
at org.springframework.core.io.AbstractFileResolvingResource.getFile(AbstractFileResolvingResource.java:48)
at org.springframework.mock.web.MockServletContext.getRealPath(MockServletContext.java:295)
at freemarker.cache.WebappTemplateLoader.findTemplateSource(WebappTemplateLoader.java:128)
at freemarker.cache.MultiTemplateLoader.findTemplateSource(MultiTemplateLoader.java:111)