Class JUnit46StackTraceWriter

  • All Implemented Interfaces:
    org.apache.maven.surefire.report.StackTraceWriter

    public class JUnit46StackTraceWriter
    extends org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter
    A stacktrace writer that requires at least junit 4.6 to run. Note that we only use this for 4.8 and higher
    Writes out a specific Failure for surefire as a stacktrace.
    Author:
    Karl M. Davis, Kristian Rosenvold
    • Field Summary

      • Fields inherited from class org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter

        junitFailure
    • Constructor Summary

      Constructors 
      Constructor Description
      JUnit46StackTraceWriter​(org.junit.runner.notification.Failure junitFailure)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getTestClassName()  
      protected java.lang.String getTestMethodName()  
      • Methods inherited from class org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter

        getThrowable, smartTrimmedStackTrace, writeTraceToString, writeTrimmedTraceToString
      • Methods inherited from class java.lang.Object

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

      • JUnit46StackTraceWriter

        public JUnit46StackTraceWriter​(org.junit.runner.notification.Failure junitFailure)
        Constructor.
        Parameters:
        junitFailure - the Failure that this will be operating on
    • Method Detail

      • getTestClassName

        protected final java.lang.String getTestClassName()
        Overrides:
        getTestClassName in class org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter
      • getTestMethodName

        protected java.lang.String getTestMethodName()
        Overrides:
        getTestMethodName in class org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter