[OT] StrutsTestCase, JUnit and IDEA

Well I marked it OT because I don't think it's 100% related to the EAP.

I've been racking my brain trying to use StrutsTestCase (a JUnit
extension) so I can test Struts components. So far I seem to keep
hitting walls when it came to setting it up to run/debug my Struts
Actions in IDEA.

The only way I can get this to work in any shape or form is if all the
classes are in the same directory as the one containing WEB-INF
directory, which is aweful of course, I've tried setting some VM
parameters, I've tried adding the WEB-INF dir to the classpath... I'm
running out of options.

Has anyone used this before, and can they perhaps shed some light as to
how their project structure is setup (src, webapps, compile dir,
src-test dir) and what the trick is to get it working right?

I'm going to give this a shot using IntelliJ IDEA 3.0.5 and see if
perhaps it's a bug in 693, but I doubt it is.

Thanks much for any reply.

1 comment
Comment actions Permalink

I've StrutsTestCase running in IDEA build #963. If you haven't got it working yet just say so and I will see what I can do to help!


Please sign in to leave a comment.