Re: Junit and Tomcat

2010-04-09 Thread Mikolaj Rydzewski
Malcolm Warren wrote: I'm more interested in testing common java classes: e.g. beans being used by .jsp files, but these java classes depend heavily on two things provided by Tomcat in its own virtual machine which Junit can't get at. 1) datasources 2) file paths So what you need is a set of

Junit and Tomcat

2010-04-08 Thread Malcolm Warren
Dear All, I've been going round in circles for about two weeks now trying to work out how to use Junit with Tomcat effectively. Any help or advice about how to do this would be very much appreciated. The main problems are probably well known, but what does everyone else do about

Re: Junit and Tomcat

2010-04-08 Thread Gregor Schneider
What do you wnat to test specifically? JSPs? Servlets? or just some common Java classes being used by a Servlet / JSP? Rgds Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @

Re: Junit and Tomcat

2010-04-08 Thread Malcolm Warren
Thank you for your reply. I'm more interested in testing common java classes: e.g. beans being used by .jsp files, but these java classes depend heavily on two things provided by Tomcat in its own virtual machine which Junit can't get at. 1) datasources 2) file paths regards, Malcolm Il

Re: Junit and Tomcat

2010-04-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Malcolm, On 4/8/2010 9:08 AM, Malcolm Warren wrote: I've been going round in circles for about two weeks now trying to work out how to use Junit with Tomcat effectively. Are you trying to test your webapp via it's /web/ interface, or are you

Re: Junit and Tomcat

2010-04-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, http://memoryjndi.sourceforge.net/ On 4/8/2010 10:49 AM, Christopher Schultz wrote: Malcolm, On 4/8/2010 9:08 AM, Malcolm Warren wrote: I've been going round in circles for about two weeks now trying to work out how to use Junit

Re: Junit and Tomcat

2010-04-08 Thread Ken Bowen
In some cases, I've dealt with the datasources problem in testing by make use of a standalone connection pool, such as the opensource Primrose (http://www.primrose.org.uk/, which has worked well for me. --Ken On Apr 8, 2010, at 10:42 AM, Malcolm Warren wrote: Thank you for your reply.