You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by jo...@apache.org on 2007/04/07 00:46:05 UTC

svn commit: r526310 - /incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/test/java/wicket/markup/html/form/login/InterceptTest.java

Author: jonl
Date: Fri Apr  6 15:46:04 2007
New Revision: 526310

URL: http://svn.apache.org/viewvc?view=rev&rev=526310
Log:
Fix unit test.

Modified:
    incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/test/java/wicket/markup/html/form/login/InterceptTest.java

Modified: incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/test/java/wicket/markup/html/form/login/InterceptTest.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/test/java/wicket/markup/html/form/login/InterceptTest.java?view=diff&rev=526310&r1=526309&r2=526310
==============================================================================
--- incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/test/java/wicket/markup/html/form/login/InterceptTest.java (original)
+++ incubator/wicket/branches/wicket-1.x/jdk-1.4/wicket/src/test/java/wicket/markup/html/form/login/InterceptTest.java Fri Apr  6 15:46:04 2007
@@ -16,6 +16,8 @@
  */
 package wicket.markup.html.form.login;
 
+import javax.servlet.http.HttpServletResponse;
+
 import junit.framework.TestCase;
 import wicket.Component;
 import wicket.ISessionFactory;
@@ -27,6 +29,7 @@
 import wicket.authorization.IAuthorizationStrategy;
 import wicket.protocol.http.WebApplication;
 import wicket.protocol.http.WebRequestCycle;
+import wicket.protocol.http.WebResponse;
 import wicket.protocol.http.WebSession;
 import wicket.util.string.Strings;
 import wicket.util.tester.WicketTester;
@@ -151,6 +154,11 @@
 		public Session newSession(Request request, Response resposne)
 		{
 			return new MySession(this, request);
+		}
+		
+		protected WebResponse newWebResponse(HttpServletResponse servletResponse)
+		{
+			return new WebResponse(servletResponse);
 		}
 	}