@Test public void traceabilityTest() throws Exception { final LogbookOperationsClient client = LogbookOperationsClientFactory.getInstance().getClient(); RequestResponse response = client.traceability(); assertNotNull(response); assertTrue(response instanceof RequestResponseOK); }
@Override public RequestResponseOK traceability() throws InvalidParseOperationException { LOGGER.debug("calling traceability "); final List<String> resultAsJson = new ArrayList<>(); resultAsJson.add(GUID_EXAMPLE); return new RequestResponseOK().addAllResults(resultAsJson); }
LogbookOperationsClientMock extends AbstractMockClient implements LogbookOperationsClient { @Override public RequestResponseOK traceability() throws InvalidParseOperationException { LOGGER.debug("calling traceability "); final List<String> resultAsJson = new ArrayList<>(); resultAsJson.add(GUID_EXAMPLE); return new RequestResponseOK().addAllResults(resultAsJson); } }
LogbookOperationsClientMock extends AbstractMockClient implements LogbookOperationsClient { @Override public RequestResponseOK traceability() throws InvalidParseOperationException { LOGGER.debug("calling traceability "); final List<String> resultAsJson = new ArrayList<>(); resultAsJson.add(GUID_EXAMPLE); return new RequestResponseOK().addAllResults(resultAsJson); }  }
LogbookOperationsClientMock extends AbstractMockClient implements LogbookOperationsClient { @Override public RequestResponseOK traceability() throws InvalidParseOperationException { LOGGER.debug("calling traceability "); final List<String> resultAsJson = new ArrayList<>(); resultAsJson.add(GUID_EXAMPLE); return new RequestResponseOK().addAllResults(resultAsJson); }  @Override void create(LogbookOperationParameters parameters); @Override void update(LogbookOperationParameters parameters); @Override JsonNode selectOperation(JsonNode select); @Override JsonNode selectOperationSliced(JsonNode select); @Override JsonNode selectOperationById(String id); @Override RequestResponseOK traceability(); @Override void createDelegate(LogbookOperationParameters parameters); @Override void updateDelegate(LogbookOperationParameters parameters); @Override void bulkCreate(String eventIdProc, Iterable<LogbookOperationParameters> queue); @Override void bulkUpdate(String eventIdProc, Iterable<LogbookOperationParameters> queue); @Override void commitCreateDelegate(String eventIdProc); @Override void commitUpdateDelegate(String eventIdProc); @Override void close(); @Override RequestResponseOK traceabilityLfcUnit(); @Override RequestResponseOK traceabilityLfcObjectGroup(); @Override JsonNode reindex(IndexParameters indexParam); @Override JsonNode switchIndexes(SwitchIndexParameters switchIndexParam); @Override void traceabilityAudit(int tenant, AuditLogbookOptions options); @Override LogbookCheckResult checkLogbookCoherence(); @Override LifecycleTraceabilityStatus checkLifecycleTraceabilityWorkflowStatus(String operationId); }
LogbookOperationsClientMock extends AbstractMockClient implements LogbookOperationsClient { @Override public RequestResponseOK traceability() throws InvalidParseOperationException { LOGGER.debug("calling traceability "); final List<String> resultAsJson = new ArrayList<>(); resultAsJson.add(GUID_EXAMPLE); return new RequestResponseOK().addAllResults(resultAsJson); }  @Override void create(LogbookOperationParameters parameters); @Override void update(LogbookOperationParameters parameters); @Override JsonNode selectOperation(JsonNode select); @Override JsonNode selectOperationSliced(JsonNode select); @Override JsonNode selectOperationById(String id); @Override RequestResponseOK traceability(); @Override void createDelegate(LogbookOperationParameters parameters); @Override void updateDelegate(LogbookOperationParameters parameters); @Override void bulkCreate(String eventIdProc, Iterable<LogbookOperationParameters> queue); @Override void bulkUpdate(String eventIdProc, Iterable<LogbookOperationParameters> queue); @Override void commitCreateDelegate(String eventIdProc); @Override void commitUpdateDelegate(String eventIdProc); @Override void close(); @Override RequestResponseOK traceabilityLfcUnit(); @Override RequestResponseOK traceabilityLfcObjectGroup(); @Override JsonNode reindex(IndexParameters indexParam); @Override JsonNode switchIndexes(SwitchIndexParameters switchIndexParam); @Override void traceabilityAudit(int tenant, AuditLogbookOptions options); @Override LogbookCheckResult checkLogbookCoherence(); @Override LifecycleTraceabilityStatus checkLifecycleTraceabilityWorkflowStatus(String operationId);  }