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() {
55
55
56
56
assertThat (beans ).hasSize (2 );
57
57
58
- final List <HelloDto > helloDtos = client .request ()
58
+ final HttpResponse < List <HelloDto > > helloDtos = client .request ()
59
59
.path ("hello" )
60
- .GET ().list (HelloDto .class );
60
+ .GET ().asList (HelloDto .class );
61
61
62
- assertThat (helloDtos ).hasSize (2 );
62
+ assertThat (helloDtos .statusCode ()).isEqualTo (200 );
63
+ assertThat (helloDtos .body ()).hasSize (2 );
63
64
}
64
65
65
66
@ Test
@@ -74,11 +75,12 @@ void helloAsyncRequestHandling() {
74
75
75
76
assertThat (beans ).hasSize (2 );
76
77
77
- final List <HelloDto > helloDtos = client .request ()
78
+ final HttpResponse < List <HelloDto > > helloDtos = client .request ()
78
79
.path ("hello/async" )
79
- .GET ().list (HelloDto .class );
80
+ .GET ().asList (HelloDto .class );
80
81
81
- assertThat (helloDtos ).hasSize (2 );
82
+ assertThat (helloDtos .statusCode ()).isEqualTo (200 );
83
+ assertThat (helloDtos .body ()).hasSize (2 );
82
84
}
83
85
84
86
@ Test
You can’t perform that action at this time.
0 commit comments