@Test public void statusTest() { SiegfriedClientFactory.changeMode(null); final SiegfriedClient client = SiegfriedClientFactory.getInstance().getClient(); assertNotNull(client); Boolean catchException = false; RequestResponse<JsonNode> response = null; try { response = client.status(Paths.get("version")); } catch (final Exception lce) { catchException = true; } assertFalse(catchException); assertNotNull(response); assertEquals("mock-1.0", response.toJsonNode().get("$results").get(0).get("siegfried").asText()); }
@Override public RequestResponse<JsonNode> status(Path filePath) throws FormatIdentifierTechnicalException, FormatIdentifierNotFoundException { return new RequestResponseOK().addResult(getVersionJson()); }
SiegfriedClientMock extends AbstractMockClient implements SiegfriedClient { @Override public RequestResponse<JsonNode> status(Path filePath) throws FormatIdentifierTechnicalException, FormatIdentifierNotFoundException { return new RequestResponseOK().addResult(getVersionJson()); } }
SiegfriedClientMock extends AbstractMockClient implements SiegfriedClient { @Override public RequestResponse<JsonNode> status(Path filePath) throws FormatIdentifierTechnicalException, FormatIdentifierNotFoundException { return new RequestResponseOK().addResult(getVersionJson()); }  }
SiegfriedClientMock extends AbstractMockClient implements SiegfriedClient { @Override public RequestResponse<JsonNode> status(Path filePath) throws FormatIdentifierTechnicalException, FormatIdentifierNotFoundException { return new RequestResponseOK().addResult(getVersionJson()); }  @Override RequestResponse<JsonNode> status(Path filePath); @Override RequestResponse<JsonNode> analysePath(Path filePath); }
SiegfriedClientMock extends AbstractMockClient implements SiegfriedClient { @Override public RequestResponse<JsonNode> status(Path filePath) throws FormatIdentifierTechnicalException, FormatIdentifierNotFoundException { return new RequestResponseOK().addResult(getVersionJson()); }  @Override RequestResponse<JsonNode> status(Path filePath); @Override RequestResponse<JsonNode> analysePath(Path filePath);  }