org.apache.maven.surefire.common.junit48
Class JUnit46StackTraceWriter

java.lang.Object
  extended by org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter
      extended by org.apache.maven.surefire.common.junit48.JUnit46StackTraceWriter
All Implemented Interfaces:
StackTraceWriter

public class JUnit46StackTraceWriter
extends 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
JUnit46StackTraceWriter(Failure junitFailure)
          Constructor.
 
Method Summary
protected  String getTestClassName()
           
 
Methods inherited from class org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter
getTestMethodName, 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(Failure junitFailure)
Constructor.

Parameters:
junitFailure - the Failure that this will be operating on
Method Detail

getTestClassName

protected final String getTestClassName()
Overrides:
getTestClassName in class JUnit4StackTraceWriter


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.