@Test public void statusExecutionWithResponse() throws Exception { when(mock.get()) .thenReturn(Response.status(Response.Status.OK).entity(JSON_NODE_VERSION).build()); RequestResponse<JsonNode> jsonNodeRequestResponse = client.status(Paths.get("Path")); assertTrue(jsonNodeRequestResponse.toJsonNode().has("$results")); assertEquals("1.6.4", jsonNodeRequestResponse.toJsonNode().get("$results").get(0).get("siegfried").asText()); }
@Override public RequestResponse<JsonNode> status(Path filePath) throws FormatIdentifierTechnicalException, FormatIdentifierNotFoundException { return analysePath(filePath); }
SiegfriedClientRest extends DefaultClient implements SiegfriedClient { @Override public RequestResponse<JsonNode> status(Path filePath) throws FormatIdentifierTechnicalException, FormatIdentifierNotFoundException { return analysePath(filePath); } }
SiegfriedClientRest extends DefaultClient implements SiegfriedClient { @Override public RequestResponse<JsonNode> status(Path filePath) throws FormatIdentifierTechnicalException, FormatIdentifierNotFoundException { return analysePath(filePath); } SiegfriedClientRest(SiegfriedClientFactory factory); }
SiegfriedClientRest extends DefaultClient implements SiegfriedClient { @Override public RequestResponse<JsonNode> status(Path filePath) throws FormatIdentifierTechnicalException, FormatIdentifierNotFoundException { return analysePath(filePath); } SiegfriedClientRest(SiegfriedClientFactory factory); @Override RequestResponse<JsonNode> analysePath(Path filePath); @Override RequestResponse<JsonNode> status(Path filePath); }
SiegfriedClientRest extends DefaultClient implements SiegfriedClient { @Override public RequestResponse<JsonNode> status(Path filePath) throws FormatIdentifierTechnicalException, FormatIdentifierNotFoundException { return analysePath(filePath); } SiegfriedClientRest(SiegfriedClientFactory factory); @Override RequestResponse<JsonNode> analysePath(Path filePath); @Override RequestResponse<JsonNode> status(Path filePath);  }