KieServices.Factory.get().getResources().newInputStreamResource( is ) );
kieFileSystem.writeKModuleXML( kproj2.toXML() );
kieFileSystem.write( "src/main/resources/rule.drl",
createDRLWithImport( "rule1" ) );
KieBuilder kieBuilder = kieServices.newKieBuilder( kieFileSystem );
kieBuilder.buildAll();
assertTrue( kieBuilder.getResults().getMessages().isEmpty() );
}
private String createJavaSourceInPackage() {
return "package org.kie.test;\n" +