Class UIMAResultPrinter

java.lang.Object
junit.textui.ResultPrinter
org.apache.uima.test.junit_extension.UIMAResultPrinter
All Implemented Interfaces:
junit.framework.TestListener

public class UIMAResultPrinter extends junit.textui.ResultPrinter implements junit.framework.TestListener
UIMAResultPrinter is a ResultPrinter extension for the JUnit framework.
  • Constructor Details

    • UIMAResultPrinter

      public UIMAResultPrinter(PrintStream writer, boolean abortOnFail, boolean teeOutputStream)
  • Method Details

    • printHeader

      protected void printHeader(long runTime)
      Overrides:
      printHeader in class junit.textui.ResultPrinter
      See Also:
      • ResultPrinter.printHeader(long)
    • printErrors

      protected void printErrors(junit.framework.TestResult result)
      Overrides:
      printErrors in class junit.textui.ResultPrinter
      See Also:
      • ResultPrinter.printErrors(junit.framework.TestResult)
    • printFailures

      protected void printFailures(junit.framework.TestResult result)
      Overrides:
      printFailures in class junit.textui.ResultPrinter
      See Also:
      • ResultPrinter.printFailures(junit.framework.TestResult)
    • printDefects

      protected void printDefects(Enumeration booBoos, int count, String type)
      Overrides:
      printDefects in class junit.textui.ResultPrinter
      See Also:
      • ResultPrinter.printDefects(java.util.Enumeration, int, java.lang.String)
    • printDefect

      public void printDefect(junit.framework.TestFailure booBoo, int count)
      Overrides:
      printDefect in class junit.textui.ResultPrinter
      See Also:
      • ResultPrinter.printDefect(junit.framework.TestFailure, int)
    • printDefectHeader

      protected void printDefectHeader(junit.framework.TestFailure booBoo, int count)
      Overrides:
      printDefectHeader in class junit.textui.ResultPrinter
      See Also:
      • ResultPrinter.printDefectHeader(junit.framework.TestFailure, int)
    • printDefectTrace

      protected void printDefectTrace(junit.framework.TestFailure booBoo)
      Overrides:
      printDefectTrace in class junit.textui.ResultPrinter
      See Also:
      • ResultPrinter.printDefectTrace(junit.framework.TestFailure)
    • printFooter

      protected void printFooter(junit.framework.TestResult result)
      Overrides:
      printFooter in class junit.textui.ResultPrinter
      See Also:
      • ResultPrinter.printFooter(junit.framework.TestResult)
    • elapsedTimeAsString

      protected String elapsedTimeAsString(long runTime)
      Returns the formatted string of the elapsed time. Duplicated from BaseTestRunner. Fix it.
      Overrides:
      elapsedTimeAsString in class junit.textui.ResultPrinter
    • getWriter

      public PrintStream getWriter()
      Overrides:
      getWriter in class junit.textui.ResultPrinter
      See Also:
      • ResultPrinter.getWriter()
    • addError

      public void addError(junit.framework.Test test, Throwable t)
      Specified by:
      addError in interface junit.framework.TestListener
      Overrides:
      addError in class junit.textui.ResultPrinter
      See Also:
      • TestListener.addError(Test, Throwable)
    • addFailure

      public void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
      Specified by:
      addFailure in interface junit.framework.TestListener
      Overrides:
      addFailure in class junit.textui.ResultPrinter
      See Also:
      • TestListener.addFailure(Test, AssertionFailedError)
    • endTest

      public void endTest(junit.framework.Test test)
      Specified by:
      endTest in interface junit.framework.TestListener
      Overrides:
      endTest in class junit.textui.ResultPrinter
      See Also:
      • TestListener.endTest(Test)
    • startTest

      public void startTest(junit.framework.Test test)
      Specified by:
      startTest in interface junit.framework.TestListener
      Overrides:
      startTest in class junit.textui.ResultPrinter
      See Also:
      • TestListener.startTest(Test)