(no commit message)
authorErik Brakkee <erik@brakkee.org>
Tue, 11 May 2010 21:36:41 +0000 (21:36 +0000)
committerErik Brakkee <erik@brakkee.org>
Tue, 11 May 2010 21:36:41 +0000 (21:36 +0000)
test/enterprise/src/main/java/org/wamblee/support/persistence/DerbyDatabase.java

index 2c33e997a908f5cac273622aa4fc638c1d89adf3..a41bf0850c4e97cf7cce1c5afb5dd2128acf06fb 100755 (executable)
@@ -24,6 +24,7 @@ import java.util.Properties;
 import java.util.logging.Level;
 import java.util.logging.Logger;
 
+import junit.framework.Assert;
 import junit.framework.TestCase;
 
 import org.apache.derby.drda.NetworkServerControl;
@@ -168,9 +169,8 @@ public class DerbyDatabase extends AbstractDatabase {
             lWaited += POLL_INTERVAL;
 
             if (lWaited > MAX_WAIT_TIME) {
-                throw new RuntimeException(
-                    "Derby database did not start within " + MAX_WAIT_TIME +
-                        "ms");
+                Assert.fail("Derby database did not start within " +
+                    MAX_WAIT_TIME + "ms");
             }
         }
     }