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
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.
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.
---
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
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
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...
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
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
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
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
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
11 matches
Mail list logo