Class AssertionErrors
java.lang.Object
org.springframework.ws.test.support.AssertionErrors
JUnit independent assertion class.
- Since:
- 2.0
- Author:
- Lukas Krecan, Arjen Poutsma
- 
Method SummaryModifier 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- 
failFails a test with the given message.- Parameters:
- message- the message
 
- 
failFails a test with the given message and source.- Parameters:
- message- the message
- source- the source
 
- 
assertTrueAsserts that a condition istrue. If not, throws anAssertionErrorwith the given message.- Parameters:
- message- the message
- condition- the condition to test for
 
- 
assertTrueAsserts that a condition istrue. If not, throws anAssertionErrorwith the given message and source.- Parameters:
- message- the message
- condition- the condition to test for
 
- 
assertEqualsAsserts that two objects are equal. If not, anAssertionErroris thrown with the given message.- Parameters:
- message- the message
- expected- the expected value
- actual- the actual value
 
- 
assertEqualspublic 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 message
- expected- the expected value
- actual- the actual value
- source- the source
 
 
-