Class TestMethodResult

java.lang.Object
dev.galasa.framework.spi.TestMethodResult
All Implemented Interfaces:
ITestMethodResult

public class TestMethodResult extends Object implements ITestMethodResult
  • Constructor Details

    • TestMethodResult

      public TestMethodResult(String name, boolean passed, boolean failed, Throwable failureReason)
  • Method Details

    • getMethodName

      public String getMethodName()
      Description copied from interface: ITestMethodResult
      Returns the name of a method associated with this result.
      Specified by:
      getMethodName in interface ITestMethodResult
      Returns:
      the method name.
    • isPassed

      public boolean isPassed()
      Description copied from interface: ITestMethodResult
      Indicates if the method passed successfully.
      Specified by:
      isPassed in interface ITestMethodResult
      Returns:
      true if the method passed, and false otherwise.
    • isFailed

      public boolean isFailed()
      Description copied from interface: ITestMethodResult
      Indicates if the method failed.
      Specified by:
      isFailed in interface ITestMethodResult
      Returns:
      true if the method failed, and false otherwise.
    • getFailureReason

      public Throwable getFailureReason()
      Description copied from interface: ITestMethodResult
      Returns the exception that caused the method to fail, if applicable.
      Specified by:
      getFailureReason in interface ITestMethodResult
      Returns:
      the Throwable that caused the failure, or null if the method passed or did not throw an exception.