Re: NullPointerException Using StrutsSpringTestCase

2011-03-12 Thread bphill...@ku.edu
StrutsSpringTestCase extends StrutsTestCase which extends another class that depends on JUnit 3 not JUnit 4. So you cannot use JUnit 4 annotations and the SpringJUnit4ClassRunner. You may find this blog article helpful: http://www.brucephillips.name/blog/index.cfm/2009/12/2/Using-JUnit-To

Re: NullPointerException Using StrutsSpringTestCase

2011-03-12 Thread Jason Ferguson
> est interdite. Ce message sert à l'information seulement et n'aura pas > n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > &

RE: NullPointerException Using StrutsSpringTestCase

2011-03-12 Thread Martin Gainty
e les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Sat, 12 Mar 2011 17:16:29 -0600 > Subject: NullPointerException Using StrutsSpringTestCase > From: fergusonja...@gmail.com > To: user@struts

NullPointerException Using StrutsSpringTestCase

2011-03-12 Thread Jason Ferguson
(Sorry, hit the wrong key combination and hit send without meaning to...) I am attempting to do some out-of-container testing of a Struts Action which extends StrutsSpringTestCase. I've tried configuring the application context two separate ways: via the @ContextConfiguration annotation a

NullPointerException Using StrutsSpringTestCase

2011-03-12 Thread Jason Ferguson
I am attempting to do some out-of-container testing of a Struts Action which extends StrutsSpringTestCase. I've tried configuring the application context two separate ways: via the @ContextConfiguration annotation and by overriding getContextLoca

Re: StrutsSpringTestCase - Memory Leak

2010-03-09 Thread carl ballantyne
Done - https://issues.apache.org/jira/browse/WW-3402. Quoting Lukasz Lenart : Could you register a new issue with patch attached? https://issues.apache.org/jira/browse/WW *Advertencia legal: en virtud de lo establecido en la Ley Organica 15/1999 de Proteccion de Datos de Caracter Person

RE: StrutsSpringTestCase - Memory Leak

2010-03-09 Thread Martin Gainty
can you update the StrutsSpringTestCase in the repository? Many Thanks for this important discovery and the solution! Saludos Cordiales desde EEUU Martin __ Porfavor no modifica o interrupta esa communicacion/Please do not modify or interrupt this

StrutsSpringTestCase - Memory Leak

2010-03-09 Thread carl ballantyne
Hi All, I ran into an issue with the StrutsSpringTestCase class when doing my unit tests. Basically the memory kept climbing until it crashed the machine. This class is actually loading the applicationContext for every test case that extends it. And because the applicationContext is

Re: StrutsSpringTestCase - Memory Leak

2010-03-09 Thread Lukasz Lenart
2010/3/9 carl ballantyne : > Hi All, > > I ran into an issue with the StrutsSpringTestCase class when doing my unit > tests. Basically the memory kept climbing until it crashed the machine. > > This class is actually loading the applicationContext for every test case > that ex

Re: StrutsSpringTestCase - Memory Leak

2010-03-09 Thread Lukasz Lenart
2010/3/9 carl ballantyne : > Done - https://issues.apache.org/jira/browse/WW-3402. And done from my side ;-) Best regards -- Łukasz http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe, e-ma

StrutsSpringTestCase - not releasing connections until all tests complete

2009-12-22 Thread carl ballantyne
am not using an Open Session In View filter preferring to grab all my data before the view layer. I know this is a bit of a general problem and will be difficult for people to analyse but maybe someone has run into this before. I am using the StrutsSpringTestCase which is part of the struts

Re: StrutsSpringTestCase

2009-11-27 Thread carl ballantyne
I just found that I can actually include xml files directly via Spring. Guess I should RTFM first. So I have created a myapp-application-test.xml which contains: Does the trick and clean enough. The Spring team say they prefer not to use this approach but since it is on

StrutsSpringTestCase

2009-11-27 Thread carl ballantyne
Hi Guys, I have the following spring bean definition files: myapp-application.xml myapp-datasource.xml myapp-datasource-test.xml When unit testing I want to use myapp-application.xml and myapp-datasource-test.xml. In the real world I want to use myapp-application.xml and myapp-datasource.xml