use of net.bytebuddy.agent.builder.AgentBuilder in project instrumentation-java by census-instrumentation.
the class UrlInstrumentationTest method instrument_enabled.
@Test
public void instrument_enabled() {
Settings settings = new Settings(ConfigFactory.parseString(FEATURE + ".enabled = true"));
AgentBuilder agentBuilder2 = instrumentation.instrument(agentBuilder, settings);
assertThat(agentBuilder2).isNotSameInstanceAs(agentBuilder);
}
use of net.bytebuddy.agent.builder.AgentBuilder in project instrumentation-java by census-instrumentation.
the class ThreadInstrumentationTest method instrument_disabled.
@Test
public void instrument_disabled() {
Settings settings = new Settings(ConfigFactory.parseString(FEATURE + ".enabled = false"));
AgentBuilder agentBuilder2 = instrumentation.instrument(agentBuilder, settings);
assertThat(agentBuilder2).isSameInstanceAs(agentBuilder);
}
Aggregations