Package com.hazelcast.jet.core.test
Class JetAssert
- java.lang.Object
-
- com.hazelcast.jet.core.test.JetAssert
-
public final class JetAssert extends java.lang.Object
Assert methods that throw exceptions similar to those thrown by JUnit.- Since:
- Jet 3.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
assertEquals(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
Asserts that the two given objects are equal, when compared usingObject.equals(Object)
.static void
assertFalse(java.lang.String message, boolean condition)
Asserts that the given condition isfalse
.static void
assertSame(java.lang.String message, java.lang.Object expected, java.lang.Object actual)
Asserts that the two given objects are the same, when compared using the==
operator and if not, anAssertionError
is thrown with the given message.static void
assertTrue(java.lang.String message, boolean condition)
Asserts that the given condition istrue
.static void
fail(java.lang.String message)
Throws anAssertionError
with the given message.
-
-
-
Method Detail
-
assertTrue
public static void assertTrue(@Nullable java.lang.String message, boolean condition)
Asserts that the given condition istrue
. If not, anAssertionError
is thrown with the given message.
-
assertFalse
public static void assertFalse(@Nullable java.lang.String message, boolean condition)
Asserts that the given condition isfalse
. If not, anAssertionError
is thrown with the given message.
-
assertSame
public static void assertSame(@Nullable java.lang.String message, @Nullable java.lang.Object expected, @Nullable java.lang.Object actual)
Asserts that the two given objects are the same, when compared using the==
operator and if not, anAssertionError
is thrown with the given message.
-
assertEquals
public static void assertEquals(@Nullable java.lang.String message, @Nullable java.lang.Object expected, @Nullable java.lang.Object actual)
Asserts that the two given objects are equal, when compared usingObject.equals(Object)
. If they are not equal, anAssertionError
is thrown with the given message.
-
fail
public static void fail(@Nullable java.lang.String message)
Throws anAssertionError
with the given message.
-
-