@Override protected void tearDown() throws Exception { super.tearDown(); if (listener != null) { processEngineConfiguration.getEventDispatcher().removeEventListener(listener); } }
@Override protected void setUp() throws Exception { super.setUp(); listener = new TestActivitiEntityEventListener(Job.class); processEngineConfiguration.getEventDispatcher().addEventListener(listener); }