Author: mgrigorov
Date: Thu Jun 16 19:02:40 2011
New Revision: 1136603

URL: http://svn.apache.org/viewvc?rev=1136603&view=rev
Log:
Use WicketTester so there is a Session in the current thread. 
HttpSessionDataStore needs a session to store the attribute.
Without the Session.exists() test application shutdown throws an exception. Run 
wicket-threadtest to reproduce it.


Modified:
    
wicket/trunk/wicket-core/src/test/java/org/apache/wicket/pageStore/memory/HttpSessionDataStoreTest.java

Modified: 
wicket/trunk/wicket-core/src/test/java/org/apache/wicket/pageStore/memory/HttpSessionDataStoreTest.java
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket-core/src/test/java/org/apache/wicket/pageStore/memory/HttpSessionDataStoreTest.java?rev=1136603&r1=1136602&r2=1136603&view=diff
==============================================================================
--- 
wicket/trunk/wicket-core/src/test/java/org/apache/wicket/pageStore/memory/HttpSessionDataStoreTest.java
 (original)
+++ 
wicket/trunk/wicket-core/src/test/java/org/apache/wicket/pageStore/memory/HttpSessionDataStoreTest.java
 Thu Jun 16 19:02:40 2011
@@ -17,16 +17,15 @@
 package org.apache.wicket.pageStore.memory;
 
 import static org.junit.Assert.assertArrayEquals;
-import static org.junit.Assert.assertNotNull;
-import static org.junit.Assert.assertNull;
 
+import org.apache.wicket.WicketTestCase;
 import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
 
 /**
  */
-public class HttpSessionDataStoreTest
+public class HttpSessionDataStoreTest extends WicketTestCase
 {
        final String sessionId = "anything";
 


Reply via email to