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 voidassertEquals(String message, Object expected, Object actual) Asserts that the two given objects are equal, when compared usingObject.equals(Object).static voidassertFalse(String message, boolean condition) Asserts that the given condition isfalse.static voidassertSame(String message, Object expected, Object actual) Asserts that the two given objects are the same, when compared using the==operator and if not, anAssertionErroris thrown with the given message.static voidassertTrue(String message, boolean condition) Asserts that the given condition istrue.static voidThrows anAssertionErrorwith the given message.
-
Method Details
-
assertTrue
Asserts that the given condition istrue. If not, anAssertionErroris thrown with the given message. -
assertFalse
Asserts that the given condition isfalse. If not, anAssertionErroris 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, anAssertionErroris 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, anAssertionErroris thrown with the given message. -
fail
Throws anAssertionErrorwith the given message.
-