Class OpenMetadataTestCaseResult

java.lang.Object
org.odpi.openmetadata.conformance.beans.OpenMetadataTestCaseSummary
org.odpi.openmetadata.conformance.beans.OpenMetadataTestCaseResult
All Implemented Interfaces:
Serializable

public class OpenMetadataTestCaseResult extends OpenMetadataTestCaseSummary
OpenMetadataTestCaseResults is a bean for storing the result of a single test.
See Also:
  • Constructor Details

    • OpenMetadataTestCaseResult

      public OpenMetadataTestCaseResult()
      Default Constructor used when converting from JSON
    • OpenMetadataTestCaseResult

      public OpenMetadataTestCaseResult(OpenMetadataTestCase testCase)
      Constructor used when test cases are running since the superclass's properties can be extracted from the test case.
      Parameters:
      testCase - running test
  • Method Details

    • getSuccessMessage

      public String getSuccessMessage()
      Return the message to confirm the successful run of the test. This property is null if the test failed.
      Returns:
      string message
    • setSuccessMessage

      public void setSuccessMessage(String successMessage)
      Set up the message to confirm the successful run of the test.
      Parameters:
      successMessage - string message
    • getElapsedTime

      public Long getElapsedTime()
      Return the elapsed time that this test case executed.
      Returns:
      time in milliseconds
    • setElapsedTime

      public void setElapsedTime(Long elapsedTime)
      Set the elapsed time that this test case executed.
      Parameters:
      elapsedTime - time in milliseconds
    • getSuccessfulAssertions

      public List<String> getSuccessfulAssertions()
      Return the list of assertions that were true when the test ran.
      Returns:
      list of assertion messages
    • setSuccessfulAssertions

      public void setSuccessfulAssertions(List<String> successfulAssertions)
      Set up the list of assertions that were true when the test ran.
      Parameters:
      successfulAssertions - list of assertion messages
    • getUnsuccessfulAssertions

      public List<String> getUnsuccessfulAssertions()
      Return the list of assertions that were false when the test ran.
      Returns:
      list of assertion messages
    • setUnsuccessfulAssertions

      public void setUnsuccessfulAssertions(List<String> unsuccessfulAssertions)
      Set up the list of assertions that were false when the test ran.
      Parameters:
      unsuccessfulAssertions - list of assertion messages
    • getNotSupportAssertions

      public List<String> getNotSupportAssertions()
      Return the list of assertions for functions that correctly reported not supported.
      Returns:
      list of assertion messages
    • setNotSupportedAssertions

      public void setNotSupportedAssertions(List<String> notSupportedAssertions)
      Set up the list of assertions for functions that correctly reported not supported.
      Parameters:
      notSupportedAssertions - list of assertion messages
    • getConformanceException

      public ExceptionBean getConformanceException()
      Return details of an unexpected exception that interrupted the test.
      Returns:
      exception bean
    • setConformanceException

      public void setConformanceException(ExceptionBean conformanceException)
      Set up details of an unexpected exception that interrupted the test.
      Parameters:
      conformanceException - bean with exception properties
    • getDiscoveredProperties

      public Map<String,Object> getDiscoveredProperties()
      Return the properties about the repository that were discovered during the test.
      Returns:
      property map
    • setDiscoveredProperties

      public void setDiscoveredProperties(Map<String,Object> discoveredProperties)
      Set up the properties about the repository that were discovered during the test.
      Parameters:
      discoveredProperties - property map
    • toString

      public String toString()
      toString() JSON-style
      Overrides:
      toString in class OpenMetadataTestCaseSummary
      Returns:
      string description