You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by kn...@apache.org on 2008/02/11 03:20:43 UTC

svn commit: r620378 - /wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/util/io/WicketOutputStreamTest.java

Author: knopp
Date: Sun Feb 10 18:20:42 2008
New Revision: 620378

URL: http://svn.apache.org/viewvc?rev=620378&view=rev
Log:
detach the request cycle otherwise session thread locals are not cleaned and are breaking other tests

Modified:
    wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/util/io/WicketOutputStreamTest.java

Modified: wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/util/io/WicketOutputStreamTest.java
URL: http://svn.apache.org/viewvc/wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/util/io/WicketOutputStreamTest.java?rev=620378&r1=620377&r2=620378&view=diff
==============================================================================
--- wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/util/io/WicketOutputStreamTest.java (original)
+++ wicket/trunk/jdk-1.4/wicket/src/test/java/org/apache/wicket/util/io/WicketOutputStreamTest.java Sun Feb 10 18:20:42 2008
@@ -23,6 +23,7 @@
 
 import junit.framework.Assert;
 
+import org.apache.wicket.RequestCycle;
 import org.apache.wicket.WicketTestCase;
 import org.apache.wicket.protocol.http.HttpSessionStore;
 import org.apache.wicket.protocol.http.WebApplication;
@@ -38,7 +39,7 @@
 
 	/**
 	 * Tests serialization of a big int.
-	 * 
+	 *
 	 * @throws Exception
 	 */
 	public void testBigInteger() throws Exception
@@ -131,6 +132,8 @@
 		Assert.assertEquals(a, a2);
 
 		Assert.assertSame(a2, a2.getB().getA());
+		
+		RequestCycle.get().detach();
 	}