org.apache.maven.surefire.common.junit4
Class JUnit4StackTraceWriter
java.lang.Object
org.apache.maven.surefire.common.junit4.JUnit4StackTraceWriter
- All Implemented Interfaces:
- StackTraceWriter
public class JUnit4StackTraceWriter
- extends Object
- implements StackTraceWriter
Writes out a specific Failure
for
surefire as a stacktrace.
- Author:
- Karl M. Davis
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
junitFailure
protected final Failure junitFailure
JUnit4StackTraceWriter
public JUnit4StackTraceWriter(Failure junitFailure)
- Constructor.
- Parameters:
junitFailure
- the Failure
that this will be operating on
writeTraceToString
public String writeTraceToString()
- Specified by:
writeTraceToString
in interface StackTraceWriter
getTestClassName
protected String getTestClassName()
smartTrimmedStackTrace
public String smartTrimmedStackTrace()
- Specified by:
smartTrimmedStackTrace
in interface StackTraceWriter
writeTrimmedTraceToString
public String writeTrimmedTraceToString()
- At the moment, returns the same as
writeTraceToString()
.
- Specified by:
writeTrimmedTraceToString
in interface StackTraceWriter
- See Also:
StackTraceWriter.writeTrimmedTraceToString()
getThrowable
public SafeThrowable getThrowable()
- Returns the exception associated with this failure.
- Specified by:
getThrowable
in interface StackTraceWriter
- See Also:
StackTraceWriter.getThrowable()
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.