use of com.navercorp.pinpoint.test.MockApplicationContextFactory in project pinpoint by naver.
the class AccessorInjectionTest method getTestClassLoader.
private TestClassLoader getTestClassLoader() {
LoggerContext context = LogManager.getContext();
PLoggerFactory.initialize(new Log4j2Binder(context));
DefaultProfilerConfig profilerConfig = new DefaultProfilerConfig();
MockApplicationContextFactory factory = new MockApplicationContextFactory();
this.applicationContext = factory.build(profilerConfig);
this.applicationContext.start();
TestClassLoader testClassLoader = new TestClassLoader(applicationContext);
testClassLoader.initialize();
return testClassLoader;
}
use of com.navercorp.pinpoint.test.MockApplicationContextFactory in project pinpoint by naver.
the class TestContext method createMockApplicationContext.
private DefaultApplicationContext createMockApplicationContext(String configPath) {
logger.trace("agent create");
MockApplicationContextFactory factory = new MockApplicationContextFactory();
return factory.build(configPath);
}
Aggregations