From 6b0165264a6715c402e19d8ff34e09845637277c Mon Sep 17 00:00:00 2001 From: ribeaudc <ribeaudc> Date: Thu, 24 Apr 2008 11:57:27 +0000 Subject: [PATCH] fix: - Wrong pattern used in Unit test: 'fail' method throws an 'AssertionError'. SVN: 5785 --- .../java/ch/systemsx/cisd/bds/hcs/WellGeometryTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bds/sourceTest/java/ch/systemsx/cisd/bds/hcs/WellGeometryTest.java b/bds/sourceTest/java/ch/systemsx/cisd/bds/hcs/WellGeometryTest.java index 34331fd9b5e..d8acc4e5a25 100644 --- a/bds/sourceTest/java/ch/systemsx/cisd/bds/hcs/WellGeometryTest.java +++ b/bds/sourceTest/java/ch/systemsx/cisd/bds/hcs/WellGeometryTest.java @@ -20,7 +20,6 @@ import static org.testng.AssertJUnit.assertEquals; import static org.testng.AssertJUnit.assertFalse; import static org.testng.AssertJUnit.assertNotNull; import static org.testng.AssertJUnit.assertTrue; -import static org.testng.AssertJUnit.fail; import java.io.File; @@ -43,14 +42,15 @@ public final class WellGeometryTest extends AbstractFileSystemTestCase @Test public final void testConstructor() { + boolean fail = true; try { new WellGeometry(-1, 0); - fail("Rows and columns must be > 0."); } catch (AssertionError ex) { - // Nothing to do here. + fail = false; } + assertFalse(fail); } @Test -- GitLab