fixed lock bug
This commit is contained in:
@@ -126,6 +126,7 @@ public class FlowExecutorImpl implements FlowExecutor {
|
||||
ExternalContextHolder.setExternalContext(context);
|
||||
FlowExecutionKey key = executionRepository.parseFlowExecutionKey(flowExecutionKey);
|
||||
FlowExecutionLock lock = executionRepository.getLock(key);
|
||||
lock.lock();
|
||||
try {
|
||||
FlowExecution flowExecution = executionRepository.getFlowExecution(key);
|
||||
flowExecution.resume(context);
|
||||
|
||||
@@ -178,10 +178,10 @@ public class FlowExecutorImplTests extends TestCase {
|
||||
}
|
||||
|
||||
private void replayMocks() {
|
||||
EasyMock.replay(new Object[] { locator, definition, factory, execution, repository });
|
||||
EasyMock.replay(new Object[] { locator, definition, factory, execution, repository, lock });
|
||||
}
|
||||
|
||||
private void verifyMocks() {
|
||||
EasyMock.verify(new Object[] { locator, definition, factory, execution, repository });
|
||||
EasyMock.verify(new Object[] { locator, definition, factory, execution, repository, lock });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user