Class FVTUnexpectedCondition

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.odpi.openmetadata.fvt.utilities.exceptions.FVTUnexpectedCondition
All Implemented Interfaces:
Serializable

public class FVTUnexpectedCondition extends Exception
FVTUnexpectedCondition is an exception used by the FVT test cases to indicate that an unexpected condition has occurred.
See Also:
  • Constructor Details

    • FVTUnexpectedCondition

      public FVTUnexpectedCondition(String testCaseName, String activityDescription, Throwable caughtException)
      Constructor for an unexpected exception.
      Parameters:
      testCaseName - test case
      activityDescription - what was the action?
      caughtException - unexpected exception
    • FVTUnexpectedCondition

      public FVTUnexpectedCondition(String testCaseName, String activityDescription)
      Constructor when an expected exception does not occur.
      Parameters:
      testCaseName - test case
      activityDescription - what was the action?
  • Method Details

    • getTestCaseName

      public String getTestCaseName()
      Retrieve the name of the test case that failed.
      Returns:
      test case name
    • getActivityDescription

      public String getActivityDescription()
      Retrieve the name of the activity that failed.
      Returns:
      description
    • getCaughtException

      public Throwable getCaughtException()
      Retrieve any unexpected exception.
      Returns:
      caught exception
    • toString

      public String toString()
      Overrides:
      toString in class Throwable