Class JUnitNotificationAdapter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private junit.framework.TestResult junitTestResult  
      private java.util.Map testByTarget  
    • Constructor Summary

      Constructors 
      Constructor Description
      JUnitNotificationAdapter​(junit.framework.TestResult testResult, java.util.Enumeration tests)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void fireEndTest​(java.lang.String targetName)
      invokes endTest on all registered test listeners.
      void fireError​(java.lang.String targetName, java.lang.Throwable t)
      invokes addError on all registered test listeners.
      void fireFail​(java.lang.String targetName, AssertionFailedException ae)
      invokes addFailure on all registered test listeners.
      void fireStartTest​(java.lang.String targetName)
      invokes start on all registered test listeners.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • junitTestResult

        private final junit.framework.TestResult junitTestResult
      • testByTarget

        private java.util.Map testByTarget
    • Constructor Detail

      • JUnitNotificationAdapter

        public JUnitNotificationAdapter​(junit.framework.TestResult testResult,
                                        java.util.Enumeration tests)
    • Method Detail

      • fireEndTest

        public void fireEndTest​(java.lang.String targetName)
        Description copied from interface: AntUnitExecutionNotifier
        invokes endTest on all registered test listeners.
        Specified by:
        fireEndTest in interface AntUnitExecutionNotifier
        Parameters:
        targetName - the name of the current target.
      • fireError

        public void fireError​(java.lang.String targetName,
                              java.lang.Throwable t)
        Description copied from interface: AntUnitExecutionNotifier
        invokes addError on all registered test listeners.
        Specified by:
        fireError in interface AntUnitExecutionNotifier
        Parameters:
        targetName - the name of the failed target.
        t - the associated Throwable.