Re: [shale] shale test framework

2005-08-02 Thread Craig McClanahan
On 8/2/05, David Thielen <[EMAIL PROTECTED]> wrote: > I figure a mock world always has limitations - but better a workable return > than an exception. > In tonight's (20050803) nightly build, you'll find a new setDocumentRoot(File) method on MockServletContext. This allows you to establish the

RE: [shale] shale test framework

2005-08-02 Thread gvanmatre
> Hi; > > > > Since everyone is being so nice about this, even though it's not a shale > problem, I figured I'd ask here. > > > > In my hibernate setup, I have a HibernateUtil class with some static > initialization code. That code sets a static final variable with my > SessionFactory.

RE: [shale] shale test framework

2005-08-02 Thread David Thielen
Hi; Since everyone is being so nice about this, even though it's not a shale problem, I figured I'd ask here. In my hibernate setup, I have a HibernateUtil class with some static initialization code. That code sets a static final variable with my SessionFactory. This is a great way to d

RE: [shale] shale test framework

2005-08-02 Thread David Thielen
Mailing List Subject: Re: [shale] shale test framework >Hi; >For those that hit the same problem - you need to call super.setUp() and >super.tearDown() in your setUp/tearDown. Yeap, that's where the heavy lifting is done. http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/test

Re: [shale] shale test framework

2005-08-02 Thread Craig McClanahan
On 8/2/05, David Thielen <[EMAIL PROTECTED]> wrote: > Hi; > > > > For those that hit the same problem - you need to call super.setUp() and > super.tearDown() in your setUp/tearDown. > Yep ... if you're extending the abstract base classes you definitely want this. We should make that clearer i

Re: [shale] shale test framework

2005-08-02 Thread gvanmatre
>Hi; >For those that hit the same problem - you need to call super.setUp() and >super.tearDown() in your setUp/tearDown. Yeap, that's where the heavy lifting is done. http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/test-framework/src/java/org/apache/shale/test/base/AbstractJsfTestCase.java?

RE: [shale] shale test framework

2005-08-02 Thread David Thielen
ath).getAbsolutePath(); } } David Thielen 303-499-2544 www.windwardreports.com -Original Message- From: David Thielen [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 3:21 PM To: user@struts.apache.org Subject: [shale] shale test framework Hi; For those that hit th

[shale] shale test framework

2005-08-02 Thread David Thielen
Hi; For those that hit the same problem - you need to call super.setUp() and super.tearDown() in your setUp/tearDown. Also, servletContext.getRealPath() is not implemented in the mock objects. Is there a reason why it doesn't return the default directory? Finally, I need to determine at