right now I have an action like....
@UrlBinding("/settings")
public class SettingsMenuAction extends SettingsTabAction {
...
}
a second action redirects to the action via....
public Resolution cancel() {
return new RedirectResolution(SettingsMenuAction.class);
}
now in the unit test of the action that makes the redirect I can run the
following fine.
@Test
public void cancel() throws Exception {
trip.execute("cancel");
assertEquals("/settings", trip.getDestination());
}
The only issue I have is with the static "/settings" in the test assertion.
Is there anyway to get that binding from the action class?
Nathan
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users