Class ErrorReportingRunner

  • All Implemented Interfaces:
    Describable

    public class ErrorReportingRunner
    extends Runner
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<java.lang.Throwable> causes  
      private java.lang.Class<?> testClass  
    • Constructor Summary

      Constructors 
      Constructor Description
      ErrorReportingRunner​(java.lang.Class<?> testClass, java.lang.Throwable cause)  
    • Field Detail

      • causes

        private final java.util.List<java.lang.Throwable> causes
      • testClass

        private final java.lang.Class<?> testClass
    • Constructor Detail

      • ErrorReportingRunner

        public ErrorReportingRunner​(java.lang.Class<?> testClass,
                                    java.lang.Throwable cause)
    • Method Detail

      • run

        public void run​(RunNotifier notifier)
        Description copied from class: Runner
        Run the tests for this runner.
        Specified by:
        run in class Runner
        Parameters:
        notifier - will be notified of events while tests are being run--tests being started, finishing, and failing
      • getCauses

        private java.util.List<java.lang.Throwable> getCauses​(java.lang.Throwable cause)
      • describeCause

        private Description describeCause​(java.lang.Throwable child)
      • runCause

        private void runCause​(java.lang.Throwable child,
                              RunNotifier notifier)