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:ITestMethodResult
Returns the name of a method associated with this result.- Specified by:
getMethodName
in interfaceITestMethodResult
- Returns:
- the method name.
-
isPassed
public boolean isPassed()Description copied from interface:ITestMethodResult
Indicates if the method passed successfully.- Specified by:
isPassed
in interfaceITestMethodResult
- Returns:
true
if the method passed, andfalse
otherwise.
-
isFailed
public boolean isFailed()Description copied from interface:ITestMethodResult
Indicates if the method failed.- Specified by:
isFailed
in interfaceITestMethodResult
- Returns:
true
if the method failed, andfalse
otherwise.
-
getFailureReason
Description copied from interface:ITestMethodResult
Returns the exception that caused the method to fail, if applicable.- Specified by:
getFailureReason
in interfaceITestMethodResult
- Returns:
- the
Throwable
that caused the failure, ornull
if the method passed or did not throw an exception.
-