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 String
private static final String
private static final Class<?>[]
private static final Object[]
private static final String
private final Set<TestListenerInvocationHandler.FailedTest>
private final JUnit3Reporter
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate SimpleReportEntry
createStartEndReportEntry
(Object[] args) private void
handleAddError
(Object[] args) private void
handleAddFailure
(Object[] args) private void
handleEndTest
(Object[] args) private void
handleStartTest
(Object[] args) private ReportEntry
toReportEntryWithException
(Object[] args) private static LegacyPojoStackTraceWriter
toStackTraceWriter
(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:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
handleStartTest
-
handleAddError
- Throws:
ReflectiveOperationException
-
toStackTraceWriter
private static LegacyPojoStackTraceWriter toStackTraceWriter(Object[] args) throws ReflectiveOperationException - Throws:
ReflectiveOperationException
-
handleAddFailure
- Throws:
ReflectiveOperationException
-
handleEndTest
-
toReportEntryWithException
- Throws:
ReflectiveOperationException
-
createStartEndReportEntry
-