org.hansel.probes
Class ExceptionProbe

java.lang.Object
  extended by org.hansel.Probe
      extended by org.hansel.probes.MethodProbe
          extended by org.hansel.probes.ExceptionProbe
All Implemented Interfaces:
junit.framework.Test

public class ExceptionProbe
extends MethodProbe

A probe for an exception handler or finally block

Author:
Niklas Mehner.

Field Summary
 
Fields inherited from class org.hansel.Probe
HIT_CLASS
 
Constructor Summary
ExceptionProbe(Probe methodProbe, ProbeData pd)
          Create a new Probe.
 
Method Summary
 boolean displayFailure()
           
 java.lang.String getFailureMessage()
           
 
Methods inherited from class org.hansel.probes.MethodProbe
coverageFailure, hit, insertProbeCode
 
Methods inherited from class org.hansel.Probe
addResult, countTestCases, equals, getDescription, getID, getName, getProbeData, hashCode, run, run, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExceptionProbe

public ExceptionProbe(Probe methodProbe,
                      ProbeData pd)
Create a new Probe.

Parameters:
methodProbe - MethodProbe of the method this probe is contained in.
pd - Data for this probe.
Method Detail

displayFailure

public boolean displayFailure()
Overrides:
displayFailure in class MethodProbe

getFailureMessage

public java.lang.String getFailureMessage()
Overrides:
getFailureMessage in class MethodProbe