use of com.alipay.sofa.ark.spi.pipeline.PipelineContext in project sofa-ark by alipay.
the class TestHelper method createNoneDelegateTestClassLoader.
public ClassLoader createNoneDelegateTestClassLoader() {
PipelineContext context = arkContainer.getPipelineContext();
URL[] classpath = context.getLaunchCommand().getClasspath();
ClassLoaderService classloaderService = arkContainer.getArkServiceContainer().getService(ClassLoaderService.class);
return new NoneDelegateTestClassLoader(MOCK_BIZ_IDENTITY, classpath);
}
use of com.alipay.sofa.ark.spi.pipeline.PipelineContext in project sofa-ark by alipay.
the class TestHelper method createTestClassLoader.
public ClassLoader createTestClassLoader() {
PipelineContext context = arkContainer.getPipelineContext();
URL[] classpath = context.getLaunchCommand().getClasspath();
ClassLoaderService classloaderService = arkContainer.getArkServiceContainer().getService(ClassLoaderService.class);
return new TestClassLoader(MOCK_BIZ_IDENTITY, classpath, classloaderService.getSystemClassLoader());
}
Aggregations