@@ -19,7 +19,7 @@ class RequestHandlerTest {
1919 .withPath(" /some" )
2020 .withHttpMethod(" GET" )
2121 .withHeaders(mapOf (" Accept" to " application/json" )), mockk()
22- )!!
22+ )
2323
2424 assert (response.statusCode).isEqualTo(200 )
2525 assert (response.body).isEqualTo(""" {"greeting":"Hello"}""" )
@@ -33,7 +33,7 @@ class RequestHandlerTest {
3333 .withPath(" /some/me" )
3434 .withHttpMethod(" GET" )
3535 .withHeaders(mapOf (" Accept" to " application/json" )), mockk()
36- )!!
36+ )
3737
3838 assert (response.statusCode).isEqualTo(200 )
3939 assert (response.body).isEqualTo(""" {"greeting":"Hello me"}""" )
@@ -47,7 +47,7 @@ class RequestHandlerTest {
4747 .withPath(" /some" )
4848 .withHttpMethod(" GET" )
4949 .withHeaders(mapOf (" Accept" to " img/jpg" )), mockk()
50- )!!
50+ )
5151
5252 assert (response.statusCode).isEqualTo(406 )
5353 }
@@ -63,7 +63,7 @@ class RequestHandlerTest {
6363 " Accept" to " application/json" ,
6464 " Content-Type" to " image/jpg"
6565 )), mockk()
66- )!!
66+ )
6767
6868 assert (response.statusCode).isEqualTo(415 )
6969 }
@@ -78,7 +78,7 @@ class RequestHandlerTest {
7878 " Content-Type" to " application/json"
7979 ))
8080 .withBody(""" { "greeting": "some" }""" ), mockk()
81- )!!
81+ )
8282
8383 assert (response.statusCode).isEqualTo(200 )
8484 assert (response.body).isEqualTo(""" {"greeting":"some"}""" )
@@ -94,7 +94,7 @@ class RequestHandlerTest {
9494 " Content-Type" to " application/json"
9595 ))
9696 .withBody(""" [{ "greeting": "some" },{ "greeting": "some1" }]""" .trimMargin()), mockk()
97- )!!
97+ )
9898
9999 assert (response.statusCode).isEqualTo(200 )
100100 assert (response.body).isEqualTo(""" [{"greeting":"some"},{"greeting":"some1"}]""" )
@@ -111,7 +111,7 @@ class RequestHandlerTest {
111111 " Accept" to " application/json" ,
112112 " Content-Type" to " image/jpg"
113113 )), mockk()
114- )!!
114+ )
115115
116116 assert (response.statusCode).isEqualTo(405 )
117117 }
@@ -124,7 +124,7 @@ class RequestHandlerTest {
124124 .withPath(" /some-other" )
125125 .withHttpMethod(" GET" )
126126 .withHeaders(mapOf (" Accept" to " application/json" )), mockk()
127- )!!
127+ )
128128
129129 assert (response.statusCode).isEqualTo(404 )
130130 }
@@ -138,7 +138,7 @@ class RequestHandlerTest {
138138 .withPath(" /some" )
139139 .withHttpMethod(" GET" )
140140 .withHeaders(mapOf (" Accept" to " application/json" )), mockk()
141- )!!
141+ )
142142
143143 assert (response.statusCode).isEqualTo(200 )
144144 assert (handler.filterInvocations).isEqualTo(2 )
@@ -156,7 +156,7 @@ class RequestHandlerTest {
156156 )
157157 )
158158 .withBody(" {}" ), mockk()
159- )!!
159+ )
160160 assert (response.statusCode).isEqualTo(422 )
161161 }
162162
@@ -168,7 +168,7 @@ class RequestHandlerTest {
168168 .withPath(" /some-api-exception" )
169169 .withHttpMethod(" GET" )
170170 .withHeaders(mapOf (" Accept" to " application/json" )), mockk()
171- )!!
171+ )
172172
173173 assert (response.statusCode).isEqualTo(400 )
174174 }
@@ -181,7 +181,7 @@ class RequestHandlerTest {
181181 .withPath(" /some-internal-server-error" )
182182 .withHttpMethod(" GET" )
183183 .withHeaders(mapOf (" Accept" to " application/json" )), mockk()
184- )!!
184+ )
185185
186186 assert (response.statusCode).isEqualTo(500 )
187187 }
0 commit comments