fixed lock bug

This commit is contained in:
Keith Donald
2008-02-26 18:21:25 +00:00
parent 15af6b4c9c
commit 7181be3fc8
2 changed files with 3 additions and 2 deletions

View File

@@ -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);

View File

@@ -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 });
}
}