Author: michiel
Date: 2009-09-14 13:18:03 +0200 (Mon, 14 Sep 2009)
New Revision: 38596

Modified:
   mmbase/trunk/tests/common/org/mmbase/tests/MMBaseTest.java
Log:
show what the **** is going on

Modified: mmbase/trunk/tests/common/org/mmbase/tests/MMBaseTest.java
===================================================================
--- mmbase/trunk/tests/common/org/mmbase/tests/MMBaseTest.java  2009-09-14 
11:08:10 UTC (rev 38595)
+++ mmbase/trunk/tests/common/org/mmbase/tests/MMBaseTest.java  2009-09-14 
11:18:03 UTC (rev 38596)
@@ -44,13 +44,20 @@
      * If your test needs a running MMBase. Call this.
      */
     static public void startMMBase(boolean startDatabase) throws Exception {
-        if (startDatabase) startDatabase();
-        MMBaseContext.init();
-        mmb = MMBase.getMMBase();
+        if (startDatabase) {
+            startDatabase();
+        }
+        try {
+            MMBaseContext.init();
+            mmb = MMBase.getMMBase();
 
-        MMAdmin mmadmin = (MMAdmin) Module.getModule("mmadmin", true);
-        while (! mmadmin.getState()) {
-            Thread.sleep(1000);
+            MMAdmin mmadmin = (MMAdmin) Module.getModule("mmadmin", true);
+            while (! mmadmin.getState()) {
+                Thread.sleep(1000);
+            }
+        } catch (Throwable e) {
+            System.out.println("Error during startMMBase" + e.getMessage() + " 
" + Logging.stackTrace(e));
+            throw new Exception(e);
         }
         
System.out.println("--------------------------------------------------------------------------------");
         System.out.println("Starting test");

_______________________________________________
Cvs mailing list
Cvs@lists.mmbase.org
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to