Class AssertionErrors
java.lang.Object
org.springframework.ws.test.support.AssertionErrors
JUnit independent assertion class.
- Since:
- 2.0
- Author:
- Lukas Krecan, Arjen Poutsma
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertEquals
(String message, Object expected, Object actual) Asserts that two objects are equal.static void
Asserts that two objects are equal.static void
assertTrue
(String message, boolean condition) Asserts that a condition istrue
.static void
assertTrue
(String message, boolean condition, String sourceLabel, Source source) Asserts that a condition istrue
.static void
Fails a test with the given message.static void
Fails a test with the given message and source.
-
Method Details
-
fail
Fails a test with the given message.- Parameters:
message
- the message
-
fail
Fails a test with the given message and source.- Parameters:
message
- the messagesource
- the source
-
assertTrue
Asserts that a condition istrue
. If not, throws anAssertionError
with the given message.- Parameters:
message
- the messagecondition
- the condition to test for
-
assertTrue
Asserts that a condition istrue
. If not, throws anAssertionError
with the given message and source.- Parameters:
message
- the messagecondition
- the condition to test for
-
assertEquals
Asserts that two objects are equal. If not, anAssertionError
is thrown with the given message.- Parameters:
message
- the messageexpected
- the expected valueactual
- the actual value
-
assertEquals
public static void assertEquals(String message, Object expected, Object actual, String sourceLabel, Source source) Asserts that two objects are equal. If not, anAssertionError
is thrown with the given message.- Parameters:
message
- the messageexpected
- the expected valueactual
- the actual valuesource
- the source
-