Package org.jbpm.test
Class KnowledgeSessionCleanup
- java.lang.Object
-
- org.jbpm.test.KnowledgeSessionCleanup
-
- All Implemented Interfaces:
org.junit.rules.MethodRule
public class KnowledgeSessionCleanup extends Object implements org.junit.rules.MethodRule
-
-
Field Summary
Fields Modifier and Type Field Description protected static ThreadLocal<Set<org.kie.internal.runtime.StatefulKnowledgeSession>>knowledgeSessionSetLocal
-
Constructor Summary
Constructors Constructor Description KnowledgeSessionCleanup()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddKnowledgeSessionForCleanup(org.kie.internal.runtime.StatefulKnowledgeSession ksession)org.junit.runners.model.Statementapply(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod method, Object target)
-
-
-
Field Detail
-
knowledgeSessionSetLocal
protected static ThreadLocal<Set<org.kie.internal.runtime.StatefulKnowledgeSession>> knowledgeSessionSetLocal
-
-
Method Detail
-
addKnowledgeSessionForCleanup
public static void addKnowledgeSessionForCleanup(org.kie.internal.runtime.StatefulKnowledgeSession ksession)
-
apply
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base, org.junit.runners.model.FrameworkMethod method, Object target)- Specified by:
applyin interfaceorg.junit.rules.MethodRule
-
-