File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
tests/test-javalin/src/test/java/org/example/myapp Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,12 @@ void hello2() {
5555
5656 assertThat (beans ).hasSize (2 );
5757
58- final List <HelloDto > helloDtos = client .request ()
58+ final HttpResponse < List <HelloDto > > helloDtos = client .request ()
5959 .path ("hello" )
60- .GET ().list (HelloDto .class );
60+ .GET ().asList (HelloDto .class );
6161
62- assertThat (helloDtos ).hasSize (2 );
62+ assertThat (helloDtos .statusCode ()).isEqualTo (200 );
63+ assertThat (helloDtos .body ()).hasSize (2 );
6364 }
6465
6566 @ Test
@@ -74,11 +75,12 @@ void helloAsyncRequestHandling() {
7475
7576 assertThat (beans ).hasSize (2 );
7677
77- final List <HelloDto > helloDtos = client .request ()
78+ final HttpResponse < List <HelloDto > > helloDtos = client .request ()
7879 .path ("hello/async" )
79- .GET ().list (HelloDto .class );
80+ .GET ().asList (HelloDto .class );
8081
81- assertThat (helloDtos ).hasSize (2 );
82+ assertThat (helloDtos .statusCode ()).isEqualTo (200 );
83+ assertThat (helloDtos .body ()).hasSize (2 );
8284 }
8385
8486 @ Test
You can’t perform that action at this time.
0 commit comments