Class TestResultFactory
- java.lang.Object
-
- com.perfecto.reportium.test.result.TestResultFactory
-
public class TestResultFactory extends Object
Factory for creating test results
-
-
Constructor Summary
Constructors Constructor Description TestResultFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TestResultcreateFailure(String message)Creates a failed test execution resultstatic TestResultcreateFailure(String message, Throwable throwable)Creates a failed test execution resultstatic TestResultcreateFailure(String message, Throwable throwable, String failureReason)Creates a failed test execution resultstatic TestResultcreateFailure(Throwable throwable)Creates a failed test execution resultstatic TestResultcreateFailure(Throwable throwable, String failureReason)Creates a failed test execution resultstatic TestResultcreateSuccess()Creates a successful test execution result
-
-
-
Method Detail
-
createSuccess
public static TestResult createSuccess()
Creates a successful test execution result- Returns:
- An object denoting a successful test execution
-
createFailure
public static TestResult createFailure(String message)
Creates a failed test execution result- Parameters:
message- Test failure reason- Returns:
- An object denoting a failed test execution
-
createFailure
public static TestResult createFailure(Throwable throwable)
Creates a failed test execution result- Parameters:
throwable- Test failure stacktrace- Returns:
- An object denoting a failed test execution
-
createFailure
public static TestResult createFailure(Throwable throwable, String failureReason)
Creates a failed test execution result- Parameters:
throwable- Test failure stacktracefailureReason- Test failure reason- Returns:
- An object denoting a failed test execution
-
createFailure
public static TestResult createFailure(String message, Throwable throwable)
Creates a failed test execution result- Parameters:
message- Test failure messagethrowable- Test failure stacktrace- Returns:
- An object denoting a failed test execution
-
createFailure
public static TestResult createFailure(String message, Throwable throwable, String failureReason)
Creates a failed test execution result- Parameters:
message- Test failure messagethrowable- Test failure stacktracefailureReason- Test failure reason- Returns:
- An object denoting a failed test execution
-
-