You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Kent Tong (JIRA)" <ji...@apache.org> on 2007/10/03 09:33:50 UTC

[jira] Commented: (WICKET-945) WicketTester requiring itself to be serializable

    [ https://issues.apache.org/jira/browse/WICKET-945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532023 ] 

Kent Tong commented on WICKET-945:
----------------------------------

At the risk of stating the obvious, did you call startPanel() in your test?

> WicketTester requiring itself to be serializable
> ------------------------------------------------
>
>                 Key: WICKET-945
>                 URL: https://issues.apache.org/jira/browse/WICKET-945
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.0-beta3
>            Reporter: Kent Tong
>
> Similar to https://issues.apache.org/jira/browse/WICKET-727, in BaseWicketTester, it creates objects of anonymous classes as pages (DummyPanelPage). By definition, they refer to the tester itself and will try to drag it in when they're serialized.
> public final Panel startPanel(final Class panelClass)
> 	{
> 		return (Panel)startPage(new ITestPageSource()
> 		{
> 			private static final long serialVersionUID = 1L;
> 			public Page getTestPage()
> 			{
> 				return new DummyPanelPage(new TestPanelSource()
> 				{
> 					private static final long serialVersionUID = 1L;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.