Skip to content

Commit d3a7050

Browse files
committed
Tidy tests using deprecated methods
1 parent 16fcf45 commit d3a7050

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

client/src/test/java/org/example/github/SimpleHttpClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public InputStream getById2(String id, InputStream is) {
5454
context.request()
5555
.path("users").path(id).path("stream")
5656
.body(() -> is)
57-
.GET().withResponseHandler(HttpResponse.BodyHandlers.ofInputStream());
57+
.GET().withHandler(HttpResponse.BodyHandlers.ofInputStream());
5858

5959
context.checkResponse(response);
6060
return response.body();

client/src/test/java/org/example/webserver/HelloController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ void stream(Context context) {
7171
* @param date The name of the hello
7272
* @param otherParam Optional other parameter
7373
* @return The Hello DTO given the id and name.
74-
* @deprecated Please migrate away
7574
*/
7675
@Get("/{id}/{date}")
7776
HelloDto hello(int id, LocalDate date, String otherParam) {

0 commit comments

Comments
 (0)