Skip to content
Snippets Groups Projects
Commit 6b016526 authored by ribeaudc's avatar ribeaudc
Browse files

fix: - Wrong pattern used in Unit test: 'fail' method throws an 'AssertionError'.

SVN: 5785
parent 4f458942
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,6 @@ import static org.testng.AssertJUnit.assertEquals; ...@@ -20,7 +20,6 @@ import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertFalse; import static org.testng.AssertJUnit.assertFalse;
import static org.testng.AssertJUnit.assertNotNull; import static org.testng.AssertJUnit.assertNotNull;
import static org.testng.AssertJUnit.assertTrue; import static org.testng.AssertJUnit.assertTrue;
import static org.testng.AssertJUnit.fail;
import java.io.File; import java.io.File;
...@@ -43,14 +42,15 @@ public final class WellGeometryTest extends AbstractFileSystemTestCase ...@@ -43,14 +42,15 @@ public final class WellGeometryTest extends AbstractFileSystemTestCase
@Test @Test
public final void testConstructor() public final void testConstructor()
{ {
boolean fail = true;
try try
{ {
new WellGeometry(-1, 0); new WellGeometry(-1, 0);
fail("Rows and columns must be > 0.");
} catch (AssertionError ex) } catch (AssertionError ex)
{ {
// Nothing to do here. fail = false;
} }
assertFalse(fail);
} }
@Test @Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment