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 longThe test execution duration in millisecondsfinal 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 or duration.UnifiedTestResult(String className, String testName, String status, long duration) Creates a new test result with duration but no failure details.UnifiedTestResult(String className, String testName, String status, String failureMessage, String stackTrace) Creates a new test result with failure details but no duration.UnifiedTestResult(String className, String testName, String status, String failureMessage, String stackTrace, long duration) 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 -
duration
public final long durationThe test execution duration in milliseconds
-
-
Constructor Details
-
UnifiedTestResult
public UnifiedTestResult(String className, String testName, String status, String failureMessage, String stackTrace, long duration) Creates a new test result with the specified details. -
UnifiedTestResult
public UnifiedTestResult(String className, String testName, String status, String failureMessage, String stackTrace) Creates a new test result with failure details but no duration. -
UnifiedTestResult
Creates a new test result without failure details or duration. -
UnifiedTestResult
Creates a new test result with duration but no failure details.
-