Class 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:
    Serialized Form
    • Constructor Detail

      • 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 Detail

      • 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