Package org.apache.maven.surefire.junit
Class TestListenerInvocationHandler
java.lang.Object
org.apache.maven.surefire.junit.TestListenerInvocationHandler
- All Implemented Interfaces:
InvocationHandler
Invocation Handler for TestListener proxies to delegate to our
RunListener-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate static final Class[]private static final Object[]private static final Stringprivate final Set<TestListenerInvocationHandler.FailedTest>private RunListenerprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static SimpleReportEntrycreateStartEndReportEntry(Object[] args) private voidhandleAddError(Object[] args) private voidhandleAddFailure(Object[] args) private voidhandleEndTest(Object[] args) private voidhandleStartTest(Object[] args) private static ReportEntrytoReportEntryWithException(Object[] args) private static LegacyPojoStackTraceWritertoStackTraceWriter(Object[] args)
-
Field Details
-
START_TEST
- See Also:
-
ADD_FAILURE
- See Also:
-
ADD_ERROR
- See Also:
-
END_TEST
- See Also:
-
failedTestsSet
-
reporter
-
EMPTY_CLASS_ARRAY
-
EMPTY_STRING_ARRAY
-
-
Constructor Details
-
TestListenerInvocationHandler
-
-
Method Details
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-
handleStartTest
-
handleAddError
- Throws:
ReflectiveOperationException
-
toStackTraceWriter
private static LegacyPojoStackTraceWriter toStackTraceWriter(Object[] args) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
handleAddFailure
- Throws:
ReflectiveOperationException
-
handleEndTest
-
toReportEntryWithException
private static ReportEntry toReportEntryWithException(Object[] args) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
createStartEndReportEntry
-