Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.0.15
-
None
-
None
-
Java 1.5.0_13, Eclipse 3.3.1.1, Windows 2000
Description
PageTester.submitForm throws a NullPointerException if the form returns a page that itself forwards to another page via onActivate. For example:
@Test
public void testSubmit()
public class Page1 {
Object onSuccess()
public class Page2 {
Object onActivate()
FAILED: testSubmit
java.lang.NullPointerException
at org.apache.tapestry.internal.test.PageLinkInvoker.invoke(PageLinkInvoker.java:61)
at org.apache.tapestry.test.PageTester.invoke(PageTester.java:167)
at org.apache.tapestry.internal.test.ActionLinkInvoker.invoke(ActionLinkInvoker.java:78)
at org.apache.tapestry.test.PageTester.invoke(PageTester.java:167)
at org.apache.tapestry.test.PageTester.submitForm(PageTester.java:195)
at com.acme.app.pages.Page1Test.testSubmit(Page1Test.java:30)