Author: cziegeler
Date: Sun Jan 20 05:25:47 2008
New Revision: 613554

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

Modified:
    
incubator/sling/trunk/sling/event/src/test/java/org/apache/sling/event/impl/AbstractRepositoryEventHandlerTest.java

Modified: 
incubator/sling/trunk/sling/event/src/test/java/org/apache/sling/event/impl/AbstractRepositoryEventHandlerTest.java
URL: 
http://svn.apache.org/viewvc/incubator/sling/trunk/sling/event/src/test/java/org/apache/sling/event/impl/AbstractRepositoryEventHandlerTest.java?rev=613554&r1=613553&r2=613554&view=diff
==============================================================================
--- 
incubator/sling/trunk/sling/event/src/test/java/org/apache/sling/event/impl/AbstractRepositoryEventHandlerTest.java
 (original)
+++ 
incubator/sling/trunk/sling/event/src/test/java/org/apache/sling/event/impl/AbstractRepositoryEventHandlerTest.java
 Sun Jan 20 05:25:47 2008
@@ -18,7 +18,9 @@
  */
 package org.apache.sling.event.impl;
 
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertTrue;
 
 import java.util.Dictionary;
 import java.util.Hashtable;
@@ -102,6 +104,8 @@
         }});
 
         this.handler.activate(componentContext);
+        // the session is initialized in the background, so let's sleep some 
seconds
+        Thread.sleep(2 * 1000);
     }
 
     @org.junit.After public void shutdown() throws Exception {


Reply via email to