Class FVTUnexpectedCondition
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.odpi.openmetadata.fvt.utilities.exceptions.FVTUnexpectedCondition
- All Implemented Interfaces:
Serializable
FVTUnexpectedCondition is an exception used by the FVT test cases to indicate that an unexpected
condition has occurred.
- See Also:
-
Constructor Summary
ConstructorDescriptionFVTUnexpectedCondition
(String testCaseName, String activityDescription) Constructor when an expected exception does not occur.FVTUnexpectedCondition
(String testCaseName, String activityDescription, Throwable caughtException) Constructor for an unexpected exception. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the name of the activity that failed.Retrieve any unexpected exception.Retrieve the name of the test case that failed.toString()
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
FVTUnexpectedCondition
public FVTUnexpectedCondition(String testCaseName, String activityDescription, Throwable caughtException) Constructor for an unexpected exception.- Parameters:
testCaseName
- test caseactivityDescription
- what was the action?caughtException
- unexpected exception
-
FVTUnexpectedCondition
Constructor when an expected exception does not occur.- Parameters:
testCaseName
- test caseactivityDescription
- what was the action?
-
-
Method Details
-
getTestCaseName
Retrieve the name of the test case that failed.- Returns:
- test case name
-
getActivityDescription
Retrieve the name of the activity that failed.- Returns:
- description
-
getCaughtException
Retrieve any unexpected exception.- Returns:
- caught exception
-
toString
-