use of org.drools.compiler.kie.builder.impl.KieBuilderSetImpl in project drools by kiegroup.
the class KieBuilderSetImplTest method testBuild.
@Test
public void testBuild() throws Exception {
final KieServices ks = KieServices.Factory.get();
final KieFileSystem kfs = ks.newKieFileSystem();
kfs.write("src/main/resources/rule%201.drl", ruleContent());
final KieBuilderSetImpl kieBuilderSet = new KieBuilderSetImpl(kieBuilder(ks, kfs));
kieBuilderSet.setFiles(new String[] { "src/main/resources/rule%201.drl" });
final IncrementalResults build = kieBuilderSet.build();
assertEquals(0, build.getAddedMessages().size());
assertEquals(0, build.getRemovedMessages().size());
}
use of org.drools.compiler.kie.builder.impl.KieBuilderSetImpl in project drools by kiegroup.
the class KieBuilderSetImplTest method testBuildPercentageAndWhiteSpaceInName.
@Test
@Ignore("RHPAM-1184, RHDM-601")
public void testBuildPercentageAndWhiteSpaceInName() throws Exception {
final KieServices ks = KieServices.Factory.get();
final KieFileSystem kfs = ks.newKieFileSystem();
kfs.write("src/main/resources/my rule 100% okay.rdrl", ResourceFactory.newInputStreamResource(this.getClass().getResourceAsStream("my rule 100% okay.rdrl")));
final KieBuilderSetImpl kieBuilderSet = new KieBuilderSetImpl(kieBuilder(ks, kfs));
kieBuilderSet.setFiles(new String[] { "src/main/resources/my rule 100% okay.rdrl" });
final IncrementalResults build = kieBuilderSet.build();
assertEquals(0, build.getAddedMessages().size());
assertEquals(0, build.getRemovedMessages().size());
}
Aggregations