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 voidassertEquals(String message, Object expected, Object actual) Asserts that two objects are equal.static voidAsserts that two objects are equal.static voidassertTrue(String message, boolean condition) Asserts that a condition istrue.static voidassertTrue(String message, boolean condition, String sourceLabel, Source source) Asserts that a condition istrue.static voidFails a test with the given message.static voidFails 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 anAssertionErrorwith the given message.- Parameters:
message- the messagecondition- the condition to test for
-
assertTrue
Asserts that a condition istrue. If not, throws anAssertionErrorwith the given message and source.- Parameters:
message- the messagecondition- the condition to test for
-
assertEquals
Asserts that two objects are equal. If not, anAssertionErroris 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, anAssertionErroris thrown with the given message.- Parameters:
message- the messageexpected- the expected valueactual- the actual valuesource- the source
-