Class FVTResults

java.lang.Object
org.odpi.openmetadata.fvt.utilities.FVTResults

public class FVTResults extends Object
FVTResults holds the results from running a number of FVT tests.
  • Constructor Details

    • FVTResults

      public FVTResults(String testCaseName)
      Set up the results for a specific test case
      Parameters:
      testCaseName - unique name for test
  • Method Details

    • incrementNumberOfTests

      public void incrementNumberOfTests()
      Increment the test count.
    • incrementNumberOfSuccesses

      public void incrementNumberOfSuccesses()
      Increment the number of successful tests.
    • addCapturedError

      public void addCapturedError(Exception exception)
      Save an unexpected exception that occurred during the tests.
      Parameters:
      exception - unexpected exception
    • getNumberOfTests

      public int getNumberOfTests()
      Retrieve the number of test run.
      Returns:
      int
    • getNumberOfSuccesses

      public int getNumberOfSuccesses()
      Retrieve the number of successful tests (should match the number of tests).
      Returns:
      int
    • getCapturedErrors

      public List<Exception> getCapturedErrors()
      Return the list of captured exceptions (should be empty).
      Returns:
      list of exceptions
    • getAuditLogDestination

      public FVTAuditLogDestination getAuditLogDestination()
      Return the audit log for the client.
      Returns:
      destination containing all of the log records.
    • isSuccessful

      public boolean isSuccessful()
      Return whether the results are successful or not
      Returns:
      boolean flag
    • printResults

      public void printResults(String serverName)
      Print out results.
      Parameters:
      serverName - calling server