public interface Instrumenter
| Modifier and Type | Field and Description |
|---|---|
static Test.InstrumentationFilter |
ALL_INSTRUMENTATION
Instrumentation filter that matches everything.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
createInstrumentedProxy(Test test,
Recorder recorder,
Object target)
Create a proxy object that wraps an target object for a test.
|
String |
getDescription()
Public description of the
Instrumenter. |
boolean |
instrument(Test test,
Recorder recorder,
Object target)
Instrument a target object with a test.
|
boolean |
instrument(Test test,
Recorder recorder,
Object target,
Test.InstrumentationFilter filter)
Selectively instrument a target object with a test.
|
static final Test.InstrumentationFilter ALL_INSTRUMENTATION
Object createInstrumentedProxy(Test test, Recorder recorder, Object target) throws NotWrappableTypeException
test - The test.recorder - The proxy should use this to instrument the work.target - Object to wrap.NotWrappableTypeException - If the target object cannot be wrapped.boolean instrument(Test test, Recorder recorder, Object target) throws NonInstrumentableTypeException
test - The test.recorder - Wire the instrumentation to this Recorder.target - The object to instrument.true if instrumentation was added.NonInstrumentableTypeException - If the target object cannot be instrumented.boolean instrument(Test test, Recorder recorder, Object target, Test.InstrumentationFilter filter) throws NonInstrumentableTypeException
test - The test.recorder - Wire the instrumentation to this Recorder.target - The object to instrument.filter - Selects the parts of target to instrument.true if instrumentation was added.NonInstrumentableTypeException - If the target object cannot be instrumented.String getDescription()
Instrumenter.null for internal Instrumenters.Copyright © 2000-2014. All Rights Reserved.