|
@@ -8,7 +8,7 @@ import org.apache.wicket.protocol.http.WebApplication;
|
|
|
* @see hellowicket.Start#main(String[])
|
|
|
*/
|
|
|
public class WicketApplication extends WebApplication
|
|
|
-{
|
|
|
+{
|
|
|
/**
|
|
|
* @see org.apache.wicket.Application#getHomePage()
|
|
|
*/
|
|
@@ -27,7 +27,13 @@ public class WicketApplication extends WebApplication
|
|
|
super.init();
|
|
|
|
|
|
// add your configuration here
|
|
|
- mountResource("/json", new HelloJsonReference());
|
|
|
- mountResource("/db", new HelloDbReference());
|
|
|
+
|
|
|
+ // mount the resources under test
|
|
|
+ mountResource("/json", new HelloJsonReference());
|
|
|
+ mountResource("/db", new HelloDbReference());
|
|
|
+
|
|
|
+ // disable response caching to be more close to other
|
|
|
+ // test applications' behavior
|
|
|
+ getRequestCycleSettings().setBufferResponse(false);
|
|
|
}
|
|
|
}
|