Class BeanTestBase
java.lang.Object
org.odpi.openmetadata.test.unittest.utilities.BeanTestBase
FFDCResponseBasedTest is
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> TValidate that an object generated from a JSON String has the same content as the object used to create the JSON String.<T> TtestResponseObject(T testObject, T clonedObject, T differentObject, Class<T> testObjectClass) Test a Bean
-
Constructor Details
-
BeanTestBase
public BeanTestBase()
-
-
Method Details
-
testJSON
Validate that an object generated from a JSON String has the same content as the object used to create the JSON String.- Type Parameters:
T- class type- Parameters:
testObject- object to testtestObjectClass- object's class- Returns:
- resulting object.
-
testResponseObject
public <T> T testResponseObject(T testObject, T clonedObject, T differentObject, Class<T> testObjectClass) Test a Bean- Type Parameters:
T- class marker- Parameters:
testObject- filled out beanclonedObject- bean cloned from the test objectdifferentObject- bean filled out differentlytestObjectClass- class of the bean- Returns:
- the test object after it has been pushed in and out through JSON.
-