@@ -17,7 +17,7 @@ class FeaturedKotlinTest {
1717 }
1818 }.ready { client ->
1919 client.get(" /" ) { rsp ->
20- assertEquals(" Hello World!" , rsp.body() !! .string())
20+ assertEquals(" Hello World!" , rsp.body!! .string())
2121 }
2222 }
2323 }
@@ -32,7 +32,7 @@ class FeaturedKotlinTest {
3232 }
3333 }.ready { client ->
3434 client.get(" /" ) { rsp ->
35- assertEquals(" Hello World!" , rsp.body() !! .string())
35+ assertEquals(" Hello World!" , rsp.body!! .string())
3636 }
3737 }
3838 }
@@ -49,7 +49,7 @@ class FeaturedKotlinTest {
4949 }
5050 }.ready { client ->
5151 client.get(" /" ) { rsp ->
52- assertEquals(" /coroutine" , rsp.body() !! .string())
52+ assertEquals(" /coroutine" , rsp.body!! .string())
5353 }
5454 }
5555 }
@@ -67,7 +67,7 @@ class FeaturedKotlinTest {
6767 }
6868 }.ready { client ->
6969 client.get(" /" ) { rsp ->
70- assertEquals(" /coroutine" , rsp.body() !! .string())
70+ assertEquals(" /coroutine" , rsp.body!! .string())
7171 }
7272 }
7373 }
@@ -86,7 +86,7 @@ class FeaturedKotlinTest {
8686 }
8787 }.ready { client ->
8888 client.get(" /" ) { rsp ->
89- assertEquals(" 1,2,3,4,5,6,7,8,9,10," , rsp.body() !! .string())
89+ assertEquals(" 1,2,3,4,5,6,7,8,9,10," , rsp.body!! .string())
9090 }
9191 }
9292 }
@@ -97,27 +97,27 @@ class FeaturedKotlinTest {
9797 app.mvc(KotlinMvc ())
9898 }.ready { client ->
9999 client.get(" /kotlin" ) { rsp ->
100- assertEquals(" Got it!" , rsp.body() !! .string())
100+ assertEquals(" Got it!" , rsp.body!! .string())
101101 }
102102
103103 client.get(" /kotlin/78" ) { rsp ->
104- assertEquals(" 78" , rsp.body() !! .string())
104+ assertEquals(" 78" , rsp.body!! .string())
105105 }
106106
107107 client.get(" /kotlin/point?x=8&y=1" ) { rsp ->
108- assertEquals(" QueryPoint(x=8, y=1) : 8" , rsp.body() !! .string())
108+ assertEquals(" QueryPoint(x=8, y=1) : 8" , rsp.body!! .string())
109109 }
110110
111111 client.get(" /kotlin/point" ) { rsp ->
112- assertEquals(" QueryPoint(x=null, y=null) : null" , rsp.body() !! .string())
112+ assertEquals(" QueryPoint(x=null, y=null) : null" , rsp.body!! .string())
113113 }
114114
115115 client.get(" /kotlin/point?x=9" ) { rsp ->
116- assertEquals(" QueryPoint(x=9, y=null) : 9" , rsp.body() !! .string())
116+ assertEquals(" QueryPoint(x=9, y=null) : 9" , rsp.body!! .string())
117117 }
118118
119119 client.get(" /kotlin/point?x=9&y=8" ) { rsp ->
120- assertEquals(" QueryPoint(x=9, y=8) : 9" , rsp.body() !! .string())
120+ assertEquals(" QueryPoint(x=9, y=8) : 9" , rsp.body!! .string())
121121 }
122122 }
123123 }
@@ -138,19 +138,19 @@ class FeaturedKotlinTest {
138138 }
139139 }.ready { client ->
140140 client.get(" /" ) { rsp ->
141- assertEquals(" Got it!" , rsp.body() !! .string())
141+ assertEquals(" Got it!" , rsp.body!! .string())
142142 }
143143
144144 client.get(" /delay" ) { rsp ->
145- assertEquals(" /delay" , rsp.body() !! .string())
145+ assertEquals(" /delay" , rsp.body!! .string())
146146 }
147147
148148 client.get(" /456" ) { rsp ->
149- assertEquals(" 456" , rsp.body() !! .string())
149+ assertEquals(" 456" , rsp.body!! .string())
150150 }
151151
152152 client.get(" /456x" ) { rsp ->
153- assertEquals(" Unable to provision parameter: 'id: int'" , rsp.body() !! .string())
153+ assertEquals(" Unable to provision parameter: 'id: int'" , rsp.body!! .string())
154154 }
155155 }
156156 }
0 commit comments