use of nl.nn.testtool.Checkpoint in project iaf by ibissource.
the class Debugger method stubINamedObject.
private boolean stubINamedObject(String checkpointNamePrefix, INamedObject namedObject, String correlationId) {
boolean stub = false;
boolean rerun;
synchronized (inRerun) {
rerun = inRerun.contains(correlationId);
}
if (rerun) {
Checkpoint originalEndpoint = testTool.getOriginalEndpointOrAbortpointForCurrentLevel(correlationId);
if (originalEndpoint == null) {
// stub = stub(getCheckpointNameForINamedObject(checkpointNamePrefix, namedObject), true, getDefaultStubStrategy());
// TODO zou ook gewoon het orginele report kunnen gebruiken (via opslaan in iets als inRerun) of inRerun ook via testTool doen?
Report reportInProgress = testTool.getReportInProgress(correlationId);
stub = stub(getCheckpointNameForINamedObject(checkpointNamePrefix, namedObject), true, (reportInProgress == null ? null : reportInProgress.getStubStrategy()));
} else {
if (originalEndpoint.getStub() == Checkpoint.STUB_FOLLOW_REPORT_STRATEGY) {
stub = stub(originalEndpoint, originalEndpoint.getReport().getStubStrategy());
} else if (originalEndpoint.getStub() == Checkpoint.STUB_NO) {
stub = false;
} else if (originalEndpoint.getStub() == Checkpoint.STUB_YES) {
stub = true;
}
}
} else {
stub = false;
}
return stub;
}
Aggregations