public void resetClock() { if (this.clock != null) { clock.reset(); } }
@Override protected void tearDown() throws Exception { // Reset any timers processEngineConfiguration.getClock().reset(); // Reset any mocks if (mockSupport != null) { mockSupport.reset(); } super.tearDown(); }
protected void finished(Description description) { // Remove the test deployment try { TestHelper.annotationDeploymentTearDown(processEngine, deploymentId, Class.forName(description.getClassName()), description.getMethodName()); } catch (ClassNotFoundException e) { throw new ActivitiException("Programmatic error: could not instantiate " + description.getClassName(), e); } // Reset internal clock processEngineConfiguration.getClock().reset(); // Rest mocks if (mockSupport != null) { TestHelper.annotationMockSupportTeardown(mockSupport); } }
processEngineConfiguration.getClock().reset();
@Override protected void tearDown() throws Exception { // Reset any timers processEngineConfiguration.getClock().reset(); // Reset any mocks if (mockSupport != null) { mockSupport.reset(); } super.tearDown(); }
public void resetClock() { if (this.clock != null) { clock.reset(); if (isActiviti5CompatibilityEnabled && activiti5CompatibilityHandler != null) { getActiviti5CompatibilityHandler().resetClock(); } } }
protected void finished(Description description) { // Remove the test deployment try { TestHelper.annotationDeploymentTearDown(processEngine, deploymentId, Class.forName(description.getClassName()), description.getMethodName()); } catch (ClassNotFoundException e) { throw new ActivitiException("Programmatic error: could not instantiate " + description.getClassName(), e); } // Reset internal clock processEngineConfiguration.getClock().reset(); // Rest mocks if (mockSupport != null) { TestHelper.annotationMockSupportTeardown(mockSupport); } }
processEngineConfiguration.getClock().reset();
processEngineConfiguration.getClock().reset();
((ProcessEngineImpl) processEngine).getProcessEngineConfiguration().getClock().reset();