Class BeanTestBase

java.lang.Object
org.odpi.openmetadata.test.unittest.utilities.BeanTestBase

public class BeanTestBase extends Object
FFDCResponseBasedTest is
  • Constructor Details

    • BeanTestBase

      public BeanTestBase()
  • Method Details

    • 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 test
      testObjectClass - 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 bean
      clonedObject - bean cloned from the test object
      differentObject - bean filled out differently
      testObjectClass - class of the bean
      Returns:
      the test object after it has been pushed in and out through JSON.