struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Grobmeier <grobme...@gmail.com>
Subject [patch] TestCase for StrutsJUnit4TestCase
Date Wed, 10 Aug 2011 11:17:02 GMT
Hi,

attached is a patch for StrutsJUnit4TestCase. It is a testcase for the
improved testcase implementation ;-)

I will add it to jira now.

Just two note:

#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)


Cheers
Christian

Mime
View raw message