Author: ivaynberg
Date: Mon Jan 15 16:04:35 2007
New Revision: 496544

URL: http://svn.apache.org/viewvc?view=rev&rev=496544
Log:
test fix

Modified:
    
incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/DisabledComponentTest.java

Modified: 
incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/DisabledComponentTest.java
URL: 
http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/DisabledComponentTest.java?view=diff&rev=496544&r1=496543&r2=496544
==============================================================================
--- 
incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/DisabledComponentTest.java
 (original)
+++ 
incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/DisabledComponentTest.java
 Mon Jan 15 16:04:35 2007
@@ -50,7 +50,10 @@
        {
                executeTest(DisabledComponentPage1.class, 
"DisabledComponentPage1a_result.html");
                Link link = 
((DisabledComponentPage1)application.getLastRenderedPage()).link;
-               link.setEnabled(false);
+               // we need to setup request/response before calling setenabled
+               application.setupRequestAndResponse();
+               application.createRequestCycle();
+               link.setEnabled(false);
                executedListener(DisabledComponentPage1.class, link, 
"DisabledComponentPage1b_result.html");
        }
        


Reply via email to