use of org.drools.core.util.FileManager in project drools by kiegroup.
the class KieRepositoryScannerTest method setUp.
@Before
public void setUp() throws Exception {
MavenEmbedderUtils.enforceWiredComponentProvider = useWiredComponentProvider;
this.fileManager = new FileManager();
this.fileManager.setUp();
ReleaseId releaseId = KieServices.Factory.get().newReleaseId("org.kie", "scanner-test", "1.0-SNAPSHOT");
}
use of org.drools.core.util.FileManager in project drools by kiegroup.
the class KieScannerMBeanTest method setUp.
@Before
public void setUp() throws Exception {
MBeanUtils.setMBeanEnabled(true);
System.setProperty(MBeanUtils.MBEANS_PROPERTY, "enabled");
this.fileManager = new FileManager();
this.fileManager.setUp();
}
use of org.drools.core.util.FileManager in project drools by kiegroup.
the class CDITestRunner method setUp.
public static void setUp(File... files) {
fileManager = new FileManager();
fileManager.setUp();
origCl = Thread.currentThread().getContextClassLoader();
((KieServicesImpl) KieServices.Factory.get()).nullKieClasspathContainer();
URLClassLoader urlClassLoader;
try {
List<URL> urls = new ArrayList<>();
if (files != null && files.length > 0) {
for (File file : files) {
urls.add(file.toURI().toURL());
}
}
urlClassLoader = new URLClassLoader(urls.toArray(new URL[urls.size()]), Thread.currentThread().getContextClassLoader());
Thread.currentThread().setContextClassLoader(urlClassLoader);
} catch (MalformedURLException e) {
fail(e.getMessage());
}
}
use of org.drools.core.util.FileManager in project drools by kiegroup.
the class AbstractKnowledgeTest method setUp.
@Before
public void setUp() throws Exception {
this.fileManager = new FileManager();
this.fileManager.setUp();
}
use of org.drools.core.util.FileManager in project drools by kiegroup.
the class KieBuilderTest method setUp.
@Before
public void setUp() throws Exception {
this.fileManager = new FileManager();
this.fileManager.setUp();
}
Aggregations