wip and test

This commit is contained in:
Tadgh 2022-11-14 18:09:15 -08:00
parent 138be3dd4e
commit c19d17b7c7
2 changed files with 7 additions and 3 deletions

View File

@ -315,13 +315,12 @@ public class JpaJobPersistenceImplTest extends BaseJpaR4Test {
// Execute
mySvc.canAdvanceInstanceToNextStep(instanceId, STEP_CHUNK_ID);
boolean b = mySvc.canAdvanceInstanceToNextStep(instanceId, STEP_CHUNK_ID);
// Verify
List<WorkChunk> chunks = mySvc.fetchWorkChunksWithoutData(instanceId, 100, 0);
assertEquals(1, chunks.size());
assertEquals(5, chunks.get(0).getErrorCount());
assertEquals(b, true);
}

View File

@ -126,6 +126,11 @@ public class SynchronizedJobPersistenceWrapper implements IJobPersistence {
myWrap.incrementWorkChunkErrorCount(theChunkId, theIncrementBy);
}
@Override
public boolean canAdvanceInstanceToNextStep(String theInstanceId, String theCurrentStepId) {
return myWrap.canAdvanceInstanceToNextStep(theInstanceId, theCurrentStepId);
}
@Override
public synchronized List<WorkChunk> fetchWorkChunksWithoutData(String theInstanceId, int thePageSize, int thePageIndex) {
return myWrap.fetchWorkChunksWithoutData(theInstanceId, thePageSize, thePageIndex);