File tree Expand file tree Collapse file tree
main/kotlin/me/proxer/library/api/messenger
test/kotlin/me/proxer/library Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ internal interface InternalApi {
4444 fun createConferenceGroup (
4545 @Field(" topic" ) topic : String? ,
4646 @Field(" text" ) firstMessage : String? ,
47- @Field(" users" ) participants : List <String >?
47+ @Field(" users[] " ) participants : List <String >?
4848 ): ProxerCall <String >
4949
5050 @FormUrlEncoded
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ class CreateConferenceGroupEndpointTest : ProxerTest() {
4545 .execute()
4646 }
4747
48- request.body.readUtf8() shouldEqual " topic=topic&text=message&users=someUser&users=anotherUser&users=testUser"
48+ request.body.readUtf8() shouldEqual """
49+ topic=topic&text=message&users%5B%5D=someUser&users%5B%5D=anotherUser&users%5B%5D=testUser
50+ """ .trimIndent().replace(" \n " , " " )
4951 }
5052}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class HeaderInterceptorTest : ProxerTest() {
3535 api.notifications.news().build().execute()
3636 }
3737
38- request.headers.get( " proxer-api-key" ) shouldEqual " mock-key"
38+ request.headers[ " proxer-api-key" ] shouldEqual " mock-key"
3939 }
4040
4141 @Test
@@ -44,7 +44,7 @@ class HeaderInterceptorTest : ProxerTest() {
4444 api.notifications.news().build().execute()
4545 }
4646
47- request.headers.get( " User-Agent" ) shouldEqual " ProxerLibJava/$VERSION "
47+ request.headers[ " User-Agent" ] shouldEqual " ProxerLibJava/$VERSION "
4848 }
4949
5050 @Test
You can’t perform that action at this time.
0 commit comments