DISQUS

Kristoffer's picture

Unregistered

Feeds

aliases

  • Kristoffer

Kristoffer

1 year ago

in In-process Web Integration Tests with Jetty and JWebUnit on Thinking inside a bigger box
One thing worth mentioning (at least for IntelliJ users) is that if you implement tests like Johannes describes in the blog and put them into a sub-module in a multi-module Maven2 project, you will have to explicitly specify the working directory for that module when running the integration test(s). If not you will get FileNotFoundExceptions followed by HTTP 503s for whatever resource you try to hit afterwards.

1 year ago

in In-process Web Integration Tests with Jetty and JWebUnit on Thinking inside a bigger box
I can't get the example up and running from within my favourite IDE(A) after generating the project files with mvn idea:idea because web.xml is not conformant to the Servlet 2.4 specification.

Ok, so I know this is a bit childish :) but I guess you've been using some other IDE of which doesn't provide proper XSD validation(?).

Anyhow, the following fragment (slightly revised) is valid:

<servlet-mapping>
<servlet-name>my</servlet-name>
<url-pattern>/my/*</url-pattern>
</servlet-mapping>
Returning? Login