| java.lang.Object | |||||
| ↳ | java.lang.Throwable | ||||
| ↳ | java.lang.Error | ||||
| ↳ | java.lang.AssertionError | ||||
| ↳ | junit.framework.AssertionFailedError | ||||
| ↳ | junit.framework.ComparisonFailure | ||||
Thrown when an assert equals for Strings failed. Inspired by a patch from Alex Chaffee mailto:[email protected]
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Constructs a comparison failure.
|
||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
Gets the actual string value
|
||||||||||
|
|
Gets the expected string value
|
||||||||||
|
|
Returns "..." in place of common prefix and "..." in
place of common suffix between expected and actual.
|
||||||||||
|
[Expand]
Inherited Methods
|
|||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Throwable
|
|||||||||||
From class
java.lang.Object
|
|||||||||||
Constructs a comparison failure.
| message | the identifying message or null |
|---|---|
| expected | the expected string value |
| actual | the actual string value |
Gets the actual string value
Gets the expected string value
Returns "..." in place of common prefix and "..." in place of common suffix between expected and actual.