-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(#1181): adds TestResultInstanceProvider to support creation of T…
…estResults
- Loading branch information
Showing
2 changed files
with
71 additions
and
24 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
core/citrus-api/src/main/java/org/citrusframework/TestResultInstanceProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.citrusframework; | ||
|
||
/** | ||
* Provides methods to create instances of {@link TestResult} for different outcomes of a test case. | ||
* Implementors may decide to create TestResults with specific parameters derived from the {@link TestCase}. | ||
*/ | ||
public interface TestResultInstanceProvider { | ||
|
||
TestResult createSuccess(TestCase testCase); | ||
TestResult createFailed(TestCase testCase, Throwable throwable); | ||
TestResult createSkipped(TestCase testCase); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters