This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Drools(kbuilderConfigFile = "kbuilderconfig.properties", | |
kbaseConfigFile = "kbaseconfig.properties", | |
}) | |
@Produces | |
@ApplicationScoped | |
RuleResouces configureRules() { | |
// Here the RuleResource guesses at being a DRL based on extension (not sure if this is valid) | |
// I also compressed the URL back to a normal syntax | |
return new RuleResources().add(new RuleResource("classpath:/kbasetest.drl", "forkbasetest")).add(...); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RunWith(Arquillian.class) | |
public class KSessionTest | |
{ | |
@Deployment | |
public static JavaArchive createTestArchive() | |
{ | |
String pkgPath = KSessionTest.class.getPackage().getName().replaceAll("\\.", "/"); | |
JavaArchive archive = ShrinkWrap.create("test.jar", JavaArchive.class) | |
.addPackages(true, new DroolsModuleFilter("ksession"), KnowledgeBaseProducer.class.getPackage()) | |
.addClass(KSessionTestRules.class) |
NewerOlder