Class TestListenerInvocationHandler

  • All Implemented Interfaces:
    java.lang.reflect.InvocationHandler

    public class TestListenerInvocationHandler
    extends java.lang.Object
    implements java.lang.reflect.InvocationHandler
    Invocation Handler for TestListener proxies to delegate to our RunListener
    • Constructor Detail

      • TestListenerInvocationHandler

        public TestListenerInvocationHandler​(RunListener reporter)
    • Method Detail

      • invoke

        public java.lang.Object invoke​(java.lang.Object proxy,
                                       java.lang.reflect.Method method,
                                       java.lang.Object[] args)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface java.lang.reflect.InvocationHandler
        Throws:
        java.lang.Throwable
      • handleStartTest

        private void handleStartTest​(java.lang.Object[] args)
      • handleAddError

        private void handleAddError​(java.lang.Object[] args)
                             throws java.lang.ReflectiveOperationException
        Throws:
        java.lang.ReflectiveOperationException
      • toStackTraceWriter

        private static LegacyPojoStackTraceWriter toStackTraceWriter​(java.lang.Object[] args)
                                                              throws java.lang.ReflectiveOperationException
        Throws:
        java.lang.ReflectiveOperationException
      • handleAddFailure

        private void handleAddFailure​(java.lang.Object[] args)
                               throws java.lang.ReflectiveOperationException
        Throws:
        java.lang.ReflectiveOperationException
      • handleEndTest

        private void handleEndTest​(java.lang.Object[] args)
      • toReportEntryWithException

        private static ReportEntry toReportEntryWithException​(java.lang.Object[] args)
                                                       throws java.lang.ReflectiveOperationException
        Throws:
        java.lang.ReflectiveOperationException
      • createStartEndReportEntry

        private static SimpleReportEntry createStartEndReportEntry​(java.lang.Object[] args)