org.hansel.probes
Class MethodProbe
java.lang.Object
org.hansel.Probe
org.hansel.probes.MethodProbe
- All Implemented Interfaces:
- junit.framework.Test
- Direct Known Subclasses:
- ExceptionProbe
public class MethodProbe
- extends Probe
A simple Probe that is placed in the instrumented code.
- Author:
- Niklas Mehner.
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 |
MethodProbe
public MethodProbe(ProbeData pd)
- Create a new Probe.
- Parameters:
pd
- Data for this probe.
displayFailure
public boolean displayFailure()
- Specified by:
displayFailure
in class Probe
coverageFailure
public boolean coverageFailure()
- Specified by:
coverageFailure
in class Probe
getFailureMessage
public java.lang.String getFailureMessage()
- Specified by:
getFailureMessage
in class Probe
insertProbeCode
public void insertProbeCode(org.objectweb.asm.MethodVisitor cv)
- Description copied from class:
Probe
- Returns the code of the probe.
- Specified by:
insertProbeCode
in class Probe
hit
public void hit()
- Called by the ProbeTable, when this Probe is encountered by the
instrumented code.