Package com.hazelcast.jet.core.test
Class JetAssert
java.lang.Object
com.hazelcast.jet.core.test.JetAssert
Assert methods that throw exceptions similar to those thrown by JUnit.
- Since:
- Jet 3.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertEquals
(String message, Object expected, Object actual) Asserts that the two given objects are equal, when compared usingObject.equals(Object)
.static void
assertFalse
(String message, boolean condition) Asserts that the given condition isfalse
.static void
assertSame
(String message, Object expected, 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
(String message, boolean condition) Asserts that the given condition istrue
.static void
Throws anAssertionError
with the given message.
-
Method Details
-
assertTrue
Asserts that the given condition istrue
. If not, anAssertionError
is thrown with the given message. -
assertFalse
Asserts that the given condition isfalse
. If not, anAssertionError
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, anAssertionError
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 usingObject.equals(Object)
. If they are not equal, anAssertionError
is thrown with the given message. -
fail
Throws anAssertionError
with the given message.
-