Skip to content

Instantly share code, notes, and snippets.

Avatar

Tihomir Surdilovic tsurdilo

View GitHub Profile
View gist:579321
@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)