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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FVTUnexpectedCondition(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetActivityDescription()Retrieve the name of the activity that failed.ThrowablegetCaughtException()Retrieve any unexpected exception.StringgetTestCaseName()Retrieve the name of the test case that failed.StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
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
-
-
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
-
-