Class JUnitTestResultConstructor
- java.lang.Object
-
- com.testomatio.reporter.core.constructor.AbstractTestResultConstructor
-
- com.testomatio.reporter.core.constructor.JUnitTestResultConstructor
-
- All Implemented Interfaces:
ResultConstructor
public class JUnitTestResultConstructor extends AbstractTestResultConstructor
Constructs test case results from JUnit 5 extension contexts. Supports custom messages and extracts exception details from execution context.
-
-
Constructor Summary
Constructors Constructor Description JUnitTestResultConstructor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TestResultcreateWithCustomMessage(TestResultWrapper holder)Creates test result using custom message from wrapper.protected TestResultcreateWithExceptionDetails(TestResultWrapper holder)Creates test result using exception details from framework-specific data.protected StringgetCustomMessage(TestResultWrapper holder)Extracts custom message from wrapper.protected StringgetFrameworkName()Returns name of the test framework for logging purposes.protected booleanhasCustomMessage(TestResultWrapper holder)Checks if wrapper contains custom message for the test result.-
Methods inherited from class com.testomatio.reporter.core.constructor.AbstractTestResultConstructor
buildTestResult, constructTestRunResult, createExceptionDetails, logTestResultCreation, validateHolder
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.testomatio.reporter.core.constructor.ResultConstructor
extractStackTrace, getStackTrace, isReportableException
-
-
-
-
Method Detail
-
hasCustomMessage
protected boolean hasCustomMessage(TestResultWrapper holder)
Description copied from class:AbstractTestResultConstructorChecks if wrapper contains custom message for the test result.- Specified by:
hasCustomMessagein classAbstractTestResultConstructor
-
getCustomMessage
protected String getCustomMessage(TestResultWrapper holder)
Description copied from class:AbstractTestResultConstructorExtracts custom message from wrapper.- Specified by:
getCustomMessagein classAbstractTestResultConstructor
-
createWithCustomMessage
protected TestResult createWithCustomMessage(TestResultWrapper holder)
Description copied from class:AbstractTestResultConstructorCreates test result using custom message from wrapper.- Specified by:
createWithCustomMessagein classAbstractTestResultConstructor
-
createWithExceptionDetails
protected TestResult createWithExceptionDetails(TestResultWrapper holder)
Description copied from class:AbstractTestResultConstructorCreates test result using exception details from framework-specific data.- Specified by:
createWithExceptionDetailsin classAbstractTestResultConstructor
-
getFrameworkName
protected String getFrameworkName()
Description copied from class:AbstractTestResultConstructorReturns name of the test framework for logging purposes.- Specified by:
getFrameworkNamein classAbstractTestResultConstructor
-
-