You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2008/01/20 14:25:55 UTC

svn commit: r613554 - /incubator/sling/trunk/sling/event/src/test/java/org/apache/sling/event/impl/AbstractRepositoryEventHandlerTest.java

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 {