@Test(expected = FormatIdentifierTechnicalException.class) public void statusExecutionInternalError() throws Exception { when(mock.get()).thenReturn(Response.status(Response.Status.INTERNAL_SERVER_ERROR).build()); client.status(Paths.get("Path")); }
@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);  }