You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by iv...@apache.org on 2010/08/07 02:50:58 UTC
svn commit: r983156 -
/wicket/trunk/wicket/src/test/java/org/apache/wicket/ComponentInitializationTest.java
Author: ivaynberg
Date: Sat Aug 7 00:50:58 2010
New Revision: 983156
URL: http://svn.apache.org/viewvc?rev=983156&view=rev
Log:
WICKET-2969
Modified:
wicket/trunk/wicket/src/test/java/org/apache/wicket/ComponentInitializationTest.java
Modified: wicket/trunk/wicket/src/test/java/org/apache/wicket/ComponentInitializationTest.java
URL: http://svn.apache.org/viewvc/wicket/trunk/wicket/src/test/java/org/apache/wicket/ComponentInitializationTest.java?rev=983156&r1=983155&r2=983156&view=diff
==============================================================================
--- wicket/trunk/wicket/src/test/java/org/apache/wicket/ComponentInitializationTest.java (original)
+++ wicket/trunk/wicket/src/test/java/org/apache/wicket/ComponentInitializationTest.java Sat Aug 7 00:50:58 2010
@@ -117,7 +117,7 @@ public class ComponentInitializationTest
boolean illegalState = false;
try
{
- page.add(new PossibleDevelopedComponent("addedComponent"));
+ page.add(new InvalidComponent("addedComponent"));
}
catch (IllegalStateException e)
{
@@ -182,29 +182,19 @@ public class ComponentInitializationTest
}
- private static class PossibleDevelopedComponent extends WebComponent
+ private static class InvalidComponent extends WebComponent
{
private final boolean initialized = false;
- public PossibleDevelopedComponent(String id)
+ public InvalidComponent(String id)
{
super(id);
}
@Override
- protected void onBeforeRender()
- {
- super.onBeforeRender();
- if (!initialized)
- {
- onInitialize();
- }
- }
-
- @Override
protected void onInitialize()
{
- // possible already implemented method by some user
+ // missing super call
}
}
}