You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jc...@apache.org on 2008/10/13 22:18:38 UTC
svn commit: r704231 -
/wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/WebResponseExceptionsTest.java
Author: jcompagner
Date: Mon Oct 13 13:18:38 2008
New Revision: 704231
URL: http://svn.apache.org/viewvc?rev=704231&view=rev
Log:
forget to set the ajax boolean on the WebResponse
Modified:
wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/WebResponseExceptionsTest.java
Modified: wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/WebResponseExceptionsTest.java
URL: http://svn.apache.org/viewvc/wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/WebResponseExceptionsTest.java?rev=704231&r1=704230&r2=704231&view=diff
==============================================================================
--- wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/WebResponseExceptionsTest.java (original)
+++ wicket/branches/wicket-1.3.x/jdk-1.4/wicket/src/test/java/org/apache/wicket/protocol/http/WebResponseExceptionsTest.java Mon Oct 13 13:18:38 2008
@@ -36,9 +36,9 @@
public void testBufferedExceptionErrorPage()
{
tester.getApplication().getRequestCycleSettings().setRenderStrategy(
- IRequestCycleSettings.REDIRECT_TO_BUFFER);
+ IRequestCycleSettings.REDIRECT_TO_BUFFER);
tester.getApplication().getExceptionSettings().setUnexpectedExceptionDisplay(
- IExceptionSettings.SHOW_EXCEPTION_PAGE);
+ IExceptionSettings.SHOW_EXCEPTION_PAGE);
testInternalErrorPage();
}
@@ -48,7 +48,7 @@
public void testExceptionErrorPage()
{
tester.getApplication().getExceptionSettings().setUnexpectedExceptionDisplay(
- IExceptionSettings.SHOW_EXCEPTION_PAGE);
+ IExceptionSettings.SHOW_EXCEPTION_PAGE);
testInternalErrorPage();
}
@@ -73,7 +73,7 @@
// Invoke the call back URL of the ajax event behavior
String callbackUrl = ((AjaxEventBehavior)link.getBehaviors().get(0)).getCallbackUrl()
- .toString();
+ .toString();
tester.setupRequestAndResponse();
// Fake an Ajax request
@@ -109,10 +109,12 @@
// Invoke the call back URL of the ajax event behavior
String callbackUrl = ((AjaxEventBehavior)link.getBehaviors().get(0)).getCallbackUrl()
- .toString().replaceAll("&", "&");
+ .toString()
+ .replaceAll("&", "&");
tester.setupRequestAndResponse();
// Fake an Ajax request
(tester.getServletRequest()).addHeader("Wicket-Ajax", "Yes");
+ tester.getWicketResponse().setAjax(tester.getWicketRequest().isAjax());
tester.getServletRequest().setURL(callbackUrl);
// Do not call tester.processRequestCycle() because it throws an