Class BeanTestBase
- java.lang.Object
-
- org.odpi.openmetadata.test.unittest.utilities.BeanTestBase
-
public class BeanTestBase extends Object
FFDCResponseBasedTest is
-
-
Constructor Summary
Constructors Constructor Description BeanTestBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <T> TtestJSON(T testObject, Class<T> testObjectClass)Validate 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
-
-
-
Method Detail
-
testJSON
protected <T> T testJSON(T testObject, Class<T> testObjectClass)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.
-
-