public final class BeanAssert extends Object
This class fulfils a similar role to other assertion libraries in testing code. It should generally be statically imported.
Modifier and Type | Method and Description |
---|---|
static void |
assertBeanEquals(Bean expected,
Bean actual)
Asserts that two beans are equal, providing a better error message.
|
static void |
assertBeanEquals(String message,
Bean expected,
Bean actual)
Asserts that two beans are equal, providing a better error message.
|
static void |
assertBeanEqualsFullDetail(Bean expected,
Bean actual)
Asserts that two beans are equal, providing a better error message.
|
static void |
assertBeanEqualsFullDetail(String message,
Bean expected,
Bean actual)
Asserts that two beans are equal, providing a better error message, with
an unlimited number of errors reported.
|
public static void assertBeanEquals(Bean expected, Bean actual)
expected
- the expected value, not nullactual
- the actual value, not nullpublic static void assertBeanEquals(String message, Bean expected, Bean actual)
message
- the message to use in any error, null uses default messageexpected
- the expected value, not nullactual
- the actual value, not nullpublic static void assertBeanEqualsFullDetail(Bean expected, Bean actual)
expected
- the expected value, not nullactual
- the actual value, not nullpublic static void assertBeanEqualsFullDetail(String message, Bean expected, Bean actual)
message
- the message to use in any error, null uses default messageexpected
- the expected value, not nullactual
- the actual value, not nullCopyright © 2007–2013 Joda.org. All rights reserved.