| java.lang.Object org.kuali.test.util.KualiTestAssertionUtils
Method Summary | |
public static void | assertEquality(Object a, Object b) | public static void | assertGlobalErrorMapContains(String expectedFieldName, String expectedErrorKey) | public static void | assertGlobalErrorMapContains(String message, String expectedFieldName, String expectedErrorKey) | public static void | assertGlobalErrorMapContains(String expectedFieldName, String expectedErrorKey, String[] expectedErrorParameters) | public static void | assertGlobalErrorMapContains(String message, String expectedFieldName, String expectedErrorKey, String[] expectedErrorParameters) | public static void | assertGlobalErrorMapEmpty() | public static void | assertGlobalErrorMapEmpty(String message) | public static void | assertGlobalErrorMapNotContains(String expectedFieldName, String expectedErrorKey) | public static void | assertGlobalErrorMapNotContains(String message, String expectedFieldName, String expectedErrorKey) | public static void | assertGlobalErrorMapSize(int expectedSize) | public static void | assertGlobalErrorMapSize(String message, int expectedSize) | public static void | assertInequality(Object a, Object b) | public static void | assertNotNullHandlingOjbProxies(Object expectedNotNull) Asserts that the given reference is neither null nor an OJB proxy that references a nonexistant object. | public static void | assertNotNullHandlingOjbProxies(String message, Object expectedNotNull) Asserts that the given reference is neither null nor an OJB proxy that references a nonexistant object. | public static void | assertNullHandlingOjbProxies(Object expectedNull) Asserts that the given reference is either null or an OJB proxy that references to a nonexistant object. | public static void | assertNullHandlingOjbProxies(String message, Object expectedNull) Asserts that the given reference is either null or an OJB proxy that references a nonexistant object. | public static void | assertSparselyEqualBean(Object expectedBean, Object actualBean) | public static void | assertSparselyEqualBean(String message, Object expectedBean, Object actualBean) Asserts that the non-null non-BO properties of the expected bean are equal to those of the actual bean. |
assertGlobalErrorMapContains | public static void assertGlobalErrorMapContains(String expectedFieldName, String expectedErrorKey)(Code) | | |
assertGlobalErrorMapContains | public static void assertGlobalErrorMapContains(String message, String expectedFieldName, String expectedErrorKey)(Code) | | |
assertGlobalErrorMapContains | public static void assertGlobalErrorMapContains(String expectedFieldName, String expectedErrorKey, String[] expectedErrorParameters)(Code) | | |
assertGlobalErrorMapContains | public static void assertGlobalErrorMapContains(String message, String expectedFieldName, String expectedErrorKey, String[] expectedErrorParameters)(Code) | | |
assertGlobalErrorMapEmpty | public static void assertGlobalErrorMapEmpty()(Code) | | |
assertGlobalErrorMapEmpty | public static void assertGlobalErrorMapEmpty(String message)(Code) | | |
assertGlobalErrorMapNotContains | public static void assertGlobalErrorMapNotContains(String expectedFieldName, String expectedErrorKey)(Code) | | |
assertGlobalErrorMapNotContains | public static void assertGlobalErrorMapNotContains(String message, String expectedFieldName, String expectedErrorKey)(Code) | | |
assertGlobalErrorMapSize | public static void assertGlobalErrorMapSize(int expectedSize)(Code) | | |
assertGlobalErrorMapSize | public static void assertGlobalErrorMapSize(String message, int expectedSize)(Code) | | |
assertNotNullHandlingOjbProxies | public static void assertNotNullHandlingOjbProxies(Object expectedNotNull)(Code) | | Asserts that the given reference is neither null nor an OJB proxy that references a nonexistant object. This is different
from assertNotNull() because ObjectUtils.isNull() checks for OJB proxies and goes to the database to see if real data is
available.
Parameters: expectedNotNull - the reference to check |
assertNotNullHandlingOjbProxies | public static void assertNotNullHandlingOjbProxies(String message, Object expectedNotNull)(Code) | | Asserts that the given reference is neither null nor an OJB proxy that references a nonexistant object. This is different
from assertNotNull() because ObjectUtils.isNull() checks for OJB proxies and goes to the database to see if real data is
available.
Parameters: message - the context of this assertion, if it fails Parameters: expectedNotNull - the reference to check |
assertNullHandlingOjbProxies | public static void assertNullHandlingOjbProxies(Object expectedNull)(Code) | | Asserts that the given reference is either null or an OJB proxy that references to a nonexistant object. This is different
from assertNull() because ObjectUtils.isNull() checks for OJB proxies and goes to the database to see if real data is
available.
Parameters: expectedNull - the reference to check |
assertNullHandlingOjbProxies | public static void assertNullHandlingOjbProxies(String message, Object expectedNull)(Code) | | Asserts that the given reference is either null or an OJB proxy that references a nonexistant object. This is different from
assertNotNull() because ObjectUtils.isNull() checks for OJB proxies and goes to the database to see if real data is
available.
Parameters: message - the context of this assertion, if it fails Parameters: expectedNull - the reference to check |
assertSparselyEqualBean | public static void assertSparselyEqualBean(String message, Object expectedBean, Object actualBean) throws InvocationTargetException, NoSuchMethodException(Code) | | Asserts that the non-null non-BO properties of the expected bean are equal to those of the actual bean. Any null or
BusinessObject expected properties are ignored. Attributes are reflected bean-style via any public no-argument methods
starting with "get" (or "is" for booleans), including inherited methods. The expected and actual beans do not need to be of
the same class.
Reflection wraps primitives, so differences in primitiveness are ignored. Properties that are BusinessObjects (generally
relations based on foreign key properties) are also ignored, because this method is not testing OJB foreign key resolution
(e.g., via the refresh method), we do not want to have to put all the related BOs into the test fixture
(redundant with the foreign keys), and many (all?) of our BOs implement the equals method in terms of identity
so would fail this assertion anyway. This is a data-oriented assertion, for our data-oriented tests and persistence layer.
Parameters: message - a description of this test assertion Parameters: expectedBean - a java bean containing expected properties Parameters: actualBean - a java bean containing actual properties throws: InvocationTargetException - if a getter method throws an exception (the cause) throws: NoSuchMethodException - if an expected property does not exist in the actualBean |
|
|