Author: ivaynberg
Date: Sat Sep 17 22:56:50 2011
New Revision: 1172142
URL: http://svn.apache.org/viewvc?rev=1172142&view=rev
Log:
Issue: WICKET-3145
Modified:
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/MockWebApplication.java
Modified:
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/MockWebApplication.java
URL:
http://svn.apache.org/viewvc/wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/MockWebApplication.java?rev=1172142&r1=1172141&r2=1172142&view=diff
==============================================================================
---
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/MockWebApplication.java
(original)
+++
wicket/branches/wicket-1.4.x/wicket/src/main/java/org/apache/wicket/protocol/http/MockWebApplication.java
Sat Sep 17 22:56:50 2011
@@ -696,6 +696,17 @@ public class MockWebApplication
}
/**
+ * Clears cookie storage
+ */
+ public void clearCookiesOfThisSession()
+ {
+ if (cookiesOfThisSession != null)
+ {
+ cookiesOfThisSession.clear();
+ }
+ }
+
+ /**
* Reset the request and the response back to a starting state and
recreate the necessary wicket
* request, response and session objects. The request and response
objects can be accessed and
* Initialized at this point.