@Override
public void handle(Request request, Response response) throws Exception {
- throw new ServerException(HTTP_GONE, String.format("The web service '%s' doesn't exists anymore, please read its documentation to use alternatives", request.getPath()));
+ throw new ServerException(HTTP_GONE, String.format("The web service '%s' doesn't exist anymore, please read its documentation to use alternatives", request.getPath()));
}
}
RemovedWebServiceHandler.INSTANCE.handle(request, null);
fail();
} catch (ServerException e) {
- assertThat(e.getMessage()).isEqualTo("The web service '/api/resources/index' doesn't exists anymore, please read its documentation to use alternatives");
+ assertThat(e.getMessage()).isEqualTo("The web service '/api/resources/index' doesn't exist anymore, please read its documentation to use alternatives");
assertThat(e.httpCode()).isEqualTo(410);
}
}