[Stripes-users] RedirectResolution in Unit Tests

2008-12-17 Thread Asleson, Ryan
Hello, I'm using Stripes 1.5. I'm writing unit tests for my ActionBean classes. I've noticed that when testing ActionBean methods that create and return a RedirectResolution, the unit test is failing with a NullPointerException on line 59 of the OnwardResolution class. I'm using the Redirect

Re: [Stripes-users] RedirectResolution in Unit Tests

2008-12-18 Thread Asleson, Ryan
Does anybody have any insight on this? From: Asleson, Ryan [mailto:asle...@biworldwide.com] Sent: Wednesday, December 17, 2008 8:45 AM To: Stripes Users List Subject: [Stripes-users] RedirectResolution in Unit Tests Hello, I'm using Stripes 1.5.

Re: [Stripes-users] RedirectResolution in Unit Tests

2008-12-18 Thread Mike McNally
On Thu, Dec 18, 2008 at 9:28 AM, Asleson, Ryan wrote: > > Does anybody have any insight on this? How are you launching your action beans in your unit tests? Specifically, is it through the Stripes "Mock" facilities? -- Turtle, turtle, on the ground, Pink and shiny, turn around. ---

Re: [Stripes-users] RedirectResolution in Unit Tests

2008-12-18 Thread Asleson, Ryan
AM To: Stripes Users List Subject: Re: [Stripes-users] RedirectResolution in Unit Tests On Thu, Dec 18, 2008 at 9:28 AM, Asleson, Ryan wrote: > > Does anybody have any insight on this? How are you launching your action beans in your unit tests? Specifically, is it through the Stri

Re: [Stripes-users] RedirectResolution in Unit Tests

2008-12-18 Thread Ben Gunter
hursday, December 18, 2008 9:51 AM > To: Stripes Users List > Subject: Re: [Stripes-users] RedirectResolution in Unit Tests > > On Thu, Dec 18, 2008 at 9:28 AM, Asleson, Ryan > wrote: > > > > Does anybody have any insight on this? > > How are you launching your

Re: [Stripes-users] RedirectResolution in Unit Tests

2008-12-18 Thread Ben Gunter
unit tests I'm creating my ActionBeans simply by using the "new" >> operator: >> >> MyActionBean actionBean = new MyActionBean(); >> >> Should they be created another way? >> >> -Original Message- >> From: Mike McNally [mailto:emmecin...

Re: [Stripes-users] RedirectResolution in Unit Tests

2008-12-19 Thread Asleson, Ryan
s correct, and if so, can you recommend any work around? Thank you!!! -Ryan From: Ben Gunter [mailto:gunter...@gmail.com] Sent: Thursday, December 18, 2008 9:49 PM To: Stripes Users List Subject: Re: [Stripes-users] RedirectResolution in Unit Tests

Re: [Stripes-users] RedirectResolution in Unit Tests

2008-12-19 Thread Oscar Westra van Holthe - Kind
On 19-12-2008 at 06:49, Asleson, Ryan wrote: > From what I can see there's one problem with MockRoundTrip: I can tell > it the class of the ActionBean I want to test, but I can't pass to it an > instance of an ActionBean. Instead, it seems to rely on creating an > ActionBean instance when the rou

Re: [Stripes-users] RedirectResolution in Unit Tests

2008-12-19 Thread Ben Gunter
Yes, I think it depends on how you want to do your tests. If you actually want to use Stripes' MockRoundTrip then you should try to set up all the filters and stuff just like they'll execute inside the app server. That will give a true indication of how everything will work. It sounds like your cas

Re: [Stripes-users] RedirectResolution in Unit Tests

2008-12-19 Thread Asleson, Ryan
I'll try it out. Thanks Ben!!! From: Ben Gunter [mailto:gunter...@gmail.com] Sent: Friday, December 19, 2008 7:11 AM To: Stripes Users List Subject: Re: [Stripes-users] RedirectResolution in Unit Tests Yes, I think it depends on how you want to do

Re: [Stripes-users] RedirectResolution in Unit Tests

2008-12-19 Thread Leonard Gestrin
5:11 AM To: Stripes Users List Subject: Re: [Stripes-users] RedirectResolution in Unit Tests Yes, I think it depends on how you want to do your tests. If you actually want to use Stripes' MockRoundTrip then you should try to set up all the filters and stuff just like they'll execute i