Search in sources :

Example 6 with ExtensionService

use of com.newrelic.agent.extension.ExtensionService in project newrelic-java-agent by newrelic.

the class PointCutConfigTest method startUp.

@Before
public void startUp() {
    MockServiceManager serviceManager = new MockServiceManager();
    ServiceFactory.setServiceManager(serviceManager);
    MockCoreService agent = new MockCoreService();
    serviceManager.setCoreService(agent);
    ConfigService configService = ConfigServiceFactory.createConfigService(AgentConfigImpl.createAgentConfig(new HashMap()), new HashMap());
    serviceManager.setConfigService(configService);
    ExtensionService service = new ExtensionService(configService, ExtensionsLoadedListener.NOOP);
    serviceManager.setExtensionService(service);
    TracerService tService = new TracerService();
    serviceManager.setTracerService(tService);
}
Also used : ExtensionService(com.newrelic.agent.extension.ExtensionService) TracerService(com.newrelic.agent.TracerService) HashMap(java.util.HashMap) MockServiceManager(com.newrelic.agent.MockServiceManager) MockCoreService(com.newrelic.agent.MockCoreService) Before(org.junit.Before)

Aggregations

ExtensionService (com.newrelic.agent.extension.ExtensionService)6 MockServiceManager (com.newrelic.agent.MockServiceManager)3 AttributesService (com.newrelic.agent.attributes.AttributesService)3 AgentConfig (com.newrelic.agent.config.AgentConfig)3 ConfigService (com.newrelic.agent.config.ConfigService)3 EnvironmentServiceImpl (com.newrelic.agent.environment.EnvironmentServiceImpl)3 DistributedTraceServiceImpl (com.newrelic.agent.tracing.DistributedTraceServiceImpl)3 Before (org.junit.Before)3 TracerService (com.newrelic.agent.TracerService)2 CircuitBreakerService (com.newrelic.agent.circuitbreaker.CircuitBreakerService)2 CommandParser (com.newrelic.agent.commands.CommandParser)2 DatabaseService (com.newrelic.agent.database.DatabaseService)2 JmxService (com.newrelic.agent.jmx.JmxService)2 SourceLanguageService (com.newrelic.agent.language.SourceLanguageService)2 NormalizationServiceImpl (com.newrelic.agent.normalization.NormalizationServiceImpl)2 ProfilerService (com.newrelic.agent.profile.ProfilerService)2 RemoteInstrumentationServiceImpl (com.newrelic.agent.reinstrument.RemoteInstrumentationServiceImpl)2 AsyncTransactionService (com.newrelic.agent.service.async.AsyncTransactionService)2 SqlTraceServiceImpl (com.newrelic.agent.sql.SqlTraceServiceImpl)2 InfiniteTracing (com.newrelic.InfiniteTracing)1