Class JUnit46StackTraceWriter

java.lang.Object
org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter
org.apache.maven.surefire.common.junit48.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

    Modifier and Type
    Method
    Description
    protected final String
     
    protected String
     

    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 Details

    • JUnit46StackTraceWriter

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

    • getTestClassName

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

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