diff options
Diffstat (limited to 'testutil/src/main/java/com/yahoo/test/PartialOrderTester.java')
-rw-r--r-- | testutil/src/main/java/com/yahoo/test/PartialOrderTester.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/testutil/src/main/java/com/yahoo/test/PartialOrderTester.java b/testutil/src/main/java/com/yahoo/test/PartialOrderTester.java index ed92171542c..0917355c50c 100644 --- a/testutil/src/main/java/com/yahoo/test/PartialOrderTester.java +++ b/testutil/src/main/java/com/yahoo/test/PartialOrderTester.java @@ -1,9 +1,6 @@ // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.test; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertTrue; - /** * PartialOrderTester implements a partial order test for OrderTester * @@ -14,14 +11,14 @@ import static org.junit.Assert.assertTrue; public class PartialOrderTester<T extends Comparable<T>> extends OrderTester<T> { protected void lessTest(T a, T b) throws AssertionError { - assertTrue(a + " must be less than or equal to " + b, a.compareTo(b) <= 0); + JunitCompat.assertTrue(a + " must be less than or equal to " + b, a.compareTo(b) <= 0); } protected void greaterTest(T a, T b) throws AssertionError { - assertTrue(a + " must be greater than or equal to " + b, a.compareTo(b) >= 0); + JunitCompat.assertTrue(a + " must be greater than or equal to " + b, a.compareTo(b) >= 0); } protected void equalTest(T a, T b) throws AssertionError { - assertEquals(a + " must be compared equal to " + b, 0, a.compareTo(b)); + JunitCompat.assertEquals(a + " must be compared equal to " + b, 0, a.compareTo(b)); } } |