org.spockframework.runtime
Class StackTraceFilter

java.lang.Object
  extended by org.spockframework.runtime.StackTraceFilter
All Implemented Interfaces:
IStackTraceFilter

public class StackTraceFilter
extends java.lang.Object
implements IStackTraceFilter

Filters an exception's stack trace. Removes internal Groovy and Spock methods, and restores the original names of feature methods (as specified in source code). Stack trace elements below a feature/fixture method invocation are truncated.

Author:
Peter Niederwieser

Constructor Summary
StackTraceFilter(IMethodNameMapper mapper)
           
 
Method Summary
 void filter(java.lang.Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackTraceFilter

public StackTraceFilter(IMethodNameMapper mapper)
Method Detail

filter

public void filter(java.lang.Throwable throwable)
Specified by:
filter in interface IStackTraceFilter


Copyright © 2013. All rights reserved