Author: ivaynberg Date: Mon Jan 15 16:07:16 2007 New Revision: 496545 URL: http://svn.apache.org/viewvc?view=rev&rev=496545 Log: test fix
Modified: incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/markup/html/basic/SimplePageTest.java Modified: incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/markup/html/basic/SimplePageTest.java URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/markup/html/basic/SimplePageTest.java?view=diff&rev=496545&r1=496544&r2=496545 ============================================================================== --- incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/markup/html/basic/SimplePageTest.java (original) +++ incubator/wicket/branches/wicket-1.x/wicket/src/test/java/wicket/markup/html/basic/SimplePageTest.java Mon Jan 15 16:07:16 2007 @@ -366,6 +366,10 @@ Panel panel = (Panel)application.getLastRenderedPage().get("myPanel"); assertNotNull(panel); + // we need to setup request/response before calling setvisible + application.setupRequestAndResponse(); + application.createRequestCycle(); + panel.setVisible(true); application.processRequestCycle(panel); String document = application.getServletResponse().getDocument();