Hello,

In a JUnit case, I get a bean without a MockRoundTrip. MyActionBean bean = new
MyActionBean(). But when I get a NullPointer when I try to call a method that
return a redirect resolution.

    java.lang.NullPointerException
    at
net.sourceforge.stripes.action.OnwardResolution.<init>(OnwardResolution.java:59)
    at
net.sourceforge.stripes.action.OnwardResolution.<init>(OnwardResolution.java:71)
    at
net.sourceforge.stripes.action.RedirectResolution.<init>
(RedirectResolution.java:94)
    at com.xxx.yyy.MyActionBean [...]

I'm using Stripes 1.5. If you need more informations, just ask :)

I'll try to make a RedirectResolutionBuilder that I can mock for my tests, but
is there a better solution?

Regards,
Jonathan


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to