use of com.newrelic.agent.config.ClassTransformerConfig in project newrelic-java-agent by newrelic.
the class InstrumentationImplTest method setUpBeforeClass.
@BeforeClass
public static void setUpBeforeClass() throws Exception {
MockServiceManager serviceManager = new MockServiceManager();
ServiceFactory.setServiceManager(serviceManager);
serviceManager.setClassTransformerService(classTransformerService);
serviceManager.setSamplerService(samplerService);
serviceManager.setCoreService(mockCoreService);
ConfigService configService = mock(ConfigService.class);
serviceManager.setConfigService(configService);
AgentConfigImpl agentConfig = mock(AgentConfigImpl.class);
when(configService.getDefaultAgentConfig()).thenReturn(agentConfig);
ClassTransformerConfig classTransformerConfig = mock(ClassTransformerConfig.class);
when(agentConfig.getClassTransformerConfig()).thenReturn(classTransformerConfig);
}
Aggregations