Package org.jbpm.test

Class KnowledgeSessionCleanup

  • All Implemented Interfaces:
    org.junit.rules.MethodRule

    public class KnowledgeSessionCleanup
    extends Object
    implements org.junit.rules.MethodRule
    • Field Detail

      • knowledgeSessionSetLocal

        protected static ThreadLocal<Set<org.kie.internal.runtime.StatefulKnowledgeSession>> knowledgeSessionSetLocal
    • Constructor Detail

      • KnowledgeSessionCleanup

        public KnowledgeSessionCleanup()
    • 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:
        apply in interface org.junit.rules.MethodRule