wip and test
This commit is contained in:
parent
138be3dd4e
commit
c19d17b7c7
|
@ -315,13 +315,12 @@ public class JpaJobPersistenceImplTest extends BaseJpaR4Test {
|
||||||
|
|
||||||
// Execute
|
// Execute
|
||||||
|
|
||||||
mySvc.canAdvanceInstanceToNextStep(instanceId, STEP_CHUNK_ID);
|
boolean b = mySvc.canAdvanceInstanceToNextStep(instanceId, STEP_CHUNK_ID);
|
||||||
|
|
||||||
// Verify
|
// Verify
|
||||||
|
|
||||||
List<WorkChunk> chunks = mySvc.fetchWorkChunksWithoutData(instanceId, 100, 0);
|
List<WorkChunk> chunks = mySvc.fetchWorkChunksWithoutData(instanceId, 100, 0);
|
||||||
assertEquals(1, chunks.size());
|
assertEquals(b, true);
|
||||||
assertEquals(5, chunks.get(0).getErrorCount());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -126,6 +126,11 @@ public class SynchronizedJobPersistenceWrapper implements IJobPersistence {
|
||||||
myWrap.incrementWorkChunkErrorCount(theChunkId, theIncrementBy);
|
myWrap.incrementWorkChunkErrorCount(theChunkId, theIncrementBy);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canAdvanceInstanceToNextStep(String theInstanceId, String theCurrentStepId) {
|
||||||
|
return myWrap.canAdvanceInstanceToNextStep(theInstanceId, theCurrentStepId);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized List<WorkChunk> fetchWorkChunksWithoutData(String theInstanceId, int thePageSize, int thePageIndex) {
|
public synchronized List<WorkChunk> fetchWorkChunksWithoutData(String theInstanceId, int thePageSize, int thePageIndex) {
|
||||||
return myWrap.fetchWorkChunksWithoutData(theInstanceId, thePageSize, thePageIndex);
|
return myWrap.fetchWorkChunksWithoutData(theInstanceId, thePageSize, thePageIndex);
|
||||||
|
|
Loading…
Reference in New Issue