public class AgentRule extends Object implements org.junit.rules.TestRule
AgentRule
. If this is unavoidable then you must invoke
reinstrumentation of the relevant classes.
However, it should be noted that, reinstrumentation would not be able to remove any class's final modifierModifier and Type | Method and Description |
---|---|
static AgentRule |
agent(Class<?> agentClass,
String agentArguments)
Dynamically load an agent from the supplied class (created a JAR behind the scenes).
|
static AgentRule |
agent(Path agentJarFile,
String agentArguments)
Dynamically load an agent from the supplied jar file.
|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description) |
public static AgentRule agent(Path agentJarFile, String agentArguments)
Dynamically load an agent from the supplied jar file.
public static AgentRule agent(Class<?> agentClass, String agentArguments)
Dynamically load an agent from the supplied class (created a JAR behind the scenes).
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runner.Description description)
apply
in interface org.junit.rules.TestRule
Copyright © 2018 earcam. All rights reserved.