From c6c6d3bb68bdcc9d4b45b8bcf86b228ced05fcc3 Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Tue, 11 May 2010 21:36:41 +0000 Subject: [PATCH] --- .../java/org/wamblee/support/persistence/DerbyDatabase.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/enterprise/src/main/java/org/wamblee/support/persistence/DerbyDatabase.java b/test/enterprise/src/main/java/org/wamblee/support/persistence/DerbyDatabase.java index 2c33e997..a41bf085 100755 --- a/test/enterprise/src/main/java/org/wamblee/support/persistence/DerbyDatabase.java +++ b/test/enterprise/src/main/java/org/wamblee/support/persistence/DerbyDatabase.java @@ -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"); } } } -- 2.31.1