01: package org.strecks.view;
02:
03: import org.apache.struts.action.ActionForward;
04: import org.testng.annotations.Test;
05:
06: /**
07: * @author Phil Zoio
08: */
09: public class TestActionForwardViewAdapter {
10: @Test
11: public void test() {
12: ActionForwardViewAdapter a = new ActionForwardViewAdapter(null);
13: assert a.getActionForward() == null;
14:
15: ActionForward actionForward = new ActionForward();
16: a = new ActionForwardViewAdapter(actionForward);
17: assert a.getActionForward() == actionForward;
18: }
19: }
|