use of org.kie.api.builder.KieScanner in project drools by kiegroup.
the class KieRepositoryScannerTest method testKieScannerOnClasspathContainerMustFail.
@Test
public void testKieScannerOnClasspathContainerMustFail() {
KieServices ks = KieServices.Factory.get();
KieContainer kieContainer = ks.getKieClasspathContainer();
try {
KieScanner scanner = ks.newKieScanner(kieContainer);
fail("Creating a KieScanner from a KieClasspathContainer must fail");
} catch (RuntimeException e) {
}
}
Aggregations