Package dev.galasa.framework.spi
Class TestMethodResult
java.lang.Object
dev.galasa.framework.spi.TestMethodResult
- All Implemented Interfaces:
ITestMethodResult
-
Constructor Summary
ConstructorsConstructorDescriptionTestMethodResult(String name, boolean passed, boolean failed, Throwable failureReason) -
Method Summary
-
Constructor Details
-
TestMethodResult
-
-
Method Details
-
getMethodName
Description copied from interface:ITestMethodResultReturns the name of a method associated with this result.- Specified by:
getMethodNamein interfaceITestMethodResult- Returns:
- the method name.
-
isPassed
public boolean isPassed()Description copied from interface:ITestMethodResultIndicates if the method passed successfully.- Specified by:
isPassedin interfaceITestMethodResult- Returns:
trueif the method passed, andfalseotherwise.
-
isFailed
public boolean isFailed()Description copied from interface:ITestMethodResultIndicates if the method failed.- Specified by:
isFailedin interfaceITestMethodResult- Returns:
trueif the method failed, andfalseotherwise.
-
getFailureReason
Description copied from interface:ITestMethodResultReturns the exception that caused the method to fail, if applicable.- Specified by:
getFailureReasonin interfaceITestMethodResult- Returns:
- the
Throwablethat caused the failure, ornullif the method passed or did not throw an exception.
-