Class Assertions
java.lang.Object
ee.jakarta.tck.concurrent.framework.junit.extensions.Assertions
Helper class for custom assertions not supported by JUnit 5
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertBetween
(int expected, int lowerBound, int upperBound) Asserts expected integer is within the range [ lowerBound, upperBound ] [inclusive].static void
assertRangeContains
(Object expected, Iterable<Object> range) Asserts expected object is within a range represented by an Iterablestatic void
assertWithin
(int expected, int lowerBound, int upperBound) Asserts expected integer is within the range ( lowerBound, upperBound ) (exclusive).
-
Method Details
-
assertWithin
public static void assertWithin(int expected, int lowerBound, int upperBound) Asserts expected integer is within the range ( lowerBound, upperBound ) (exclusive). -
assertBetween
public static void assertBetween(int expected, int lowerBound, int upperBound) Asserts expected integer is within the range [ lowerBound, upperBound ] [inclusive]. -
assertRangeContains
Asserts expected object is within a range represented by an Iterable
-