Class ScopeTestHelper
java.lang.Object
com.espertech.esper.common.client.scopetest.ScopeTestHelper
Helper for asserting conditions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertEquals
(Object expected, Object actual) Assert that two values equal.static void
assertEquals
(String message, Object expected, Object actual) Assert that two values equal.static void
assertFalse
(boolean condition) Assert a condition is false.static void
assertFalse
(String message, boolean condition) Assert a condition is false.static void
assertNotNull
(Object object) Assert that a value is not null.static void
assertNotNull
(String message, Object object) Assert that a value is not null.static void
assertNull
(Object object) Assert that a value is null.static void
assertNull
(String message, Object object) Assert that a value is null.static void
assertSame
(Object expected, Object actual) Assert that two values are the same.static void
assertSame
(String message, Object expected, Object actual) Assert that two values are the same.static void
assertTrue
(boolean condition) Assert a condition is true.static void
assertTrue
(String message, boolean condition) Assert a condition is true.static void
fail()
Fail assertion.static void
Fail assertion.static void
failNotEquals
(String message, Object expected, Object actual) Fail assertion formatting a message for not-equals.static void
failNotSame
(String message, Object expected, Object actual) Fail assertion formatting a message for not-same.
-
Constructor Details
-
ScopeTestHelper
public ScopeTestHelper()
-
-
Method Details
-
assertFalse
public static void assertFalse(boolean condition) Assert a condition is false.- Parameters:
condition
- to assert
-
assertTrue
public static void assertTrue(boolean condition) Assert a condition is true.- Parameters:
condition
- to assert
-
assertTrue
Assert a condition is true.- Parameters:
message
- an optional messagecondition
- to assert
-
assertFalse
Assert a condition is false.- Parameters:
message
- an optional messagecondition
- to assert
-
assertEquals
Assert that two values equal.- Parameters:
message
- an optional messageexpected
- expected valueactual
- actual value
-
assertEquals
Assert that two values equal.- Parameters:
expected
- expected valueactual
- actual value
-
fail
public static void fail()Fail assertion. -
assertSame
Assert that two values are the same.- Parameters:
message
- an optional messageexpected
- expected valueactual
- actual value
-
assertSame
Assert that two values are the same.- Parameters:
expected
- expected valueactual
- actual value
-
assertNull
Assert that a value is null.- Parameters:
message
- an optional messageobject
- the object to check
-
assertNotNull
Assert that a value is not null.- Parameters:
object
- the object to check
-
assertNotNull
Assert that a value is not null.- Parameters:
object
- the object to checkmessage
- message
-
assertNull
Assert that a value is null.- Parameters:
object
- the object to check
-
failNotSame
Fail assertion formatting a message for not-same.- Parameters:
message
- an optional messageexpected
- expected valueactual
- actual value
-
failNotEquals
Fail assertion formatting a message for not-equals.- Parameters:
message
- an optional messageexpected
- expected valueactual
- actual value
-
fail
Fail assertion.- Parameters:
message
- an optional message
-