java.lang.Object
ee.jakarta.tck.concurrent.framework.junit.extensions.Assertions

public final class Assertions extends Object
Helper class for custom assertions not supported by JUnit 5
  • 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

      public static void assertRangeContains(Object expected, Iterable<Object> range)
      Asserts expected object is within a range represented by an Iterable