Class UnifiedTestResult
java.lang.Object
io.github.mov2day.unifiedtest.collector.UnifiedTestResult
Represents the result of a single test execution.
Contains the test class name, test method name, and execution status.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe fully qualified name of the test classfinal StringThe failure message if the test failed, null otherwisefinal StringThe stack trace if the test failed, null otherwisefinal StringThe test execution status (PASS, FAIL, SKIP)final StringThe name of the test method -
Constructor Summary
ConstructorsConstructorDescriptionUnifiedTestResult(String className, String testName, String status) Creates a new test result without failure details.UnifiedTestResult(String className, String testName, String status, String failureMessage, String stackTrace) Creates a new test result with the specified details. -
Method Summary
-
Field Details
-
className
The fully qualified name of the test class -
testName
The name of the test method -
status
The test execution status (PASS, FAIL, SKIP) -
failureMessage
The failure message if the test failed, null otherwise -
stackTrace
The stack trace if the test failed, null otherwise
-
-
Constructor Details
-
UnifiedTestResult
public UnifiedTestResult(String className, String testName, String status, String failureMessage, String stackTrace) Creates a new test result with the specified details.- Parameters:
className- the fully qualified name of the test classtestName- the name of the test methodstatus- the test execution statusfailureMessage- the failure message if test failedstackTrace- the stack trace if test failed
-
UnifiedTestResult
Creates a new test result without failure details.- Parameters:
className- the fully qualified name of the test classtestName- the name of the test methodstatus- the test execution status
-