Class JetAssert

java.lang.Object
com.hazelcast.jet.core.test.JetAssert

public final class JetAssert extends Object
Assert methods that throw exceptions similar to those thrown by JUnit.
Since:
Jet 3.0
  • Method Details

    • assertTrue

      public static void assertTrue(@Nullable String message, boolean condition)
      Asserts that the given condition is true. If not, an AssertionError is thrown with the given message.
    • assertFalse

      public static void assertFalse(@Nullable String message, boolean condition)
      Asserts that the given condition is false. If not, an AssertionError is thrown with the given message.
    • assertSame

      public static void assertSame(@Nullable String message, @Nullable Object expected, @Nullable Object actual)
      Asserts that the two given objects are the same, when compared using the == operator and if not, an AssertionError is thrown with the given message.
    • assertEquals

      public static void assertEquals(@Nullable String message, @Nullable Object expected, @Nullable Object actual)
      Asserts that the two given objects are equal, when compared using Object.equals(Object). If they are not equal, an AssertionError is thrown with the given message.
    • fail

      public static void fail(@Nullable String message)
      Throws an AssertionError with the given message.