File tree 3 files changed +6
-4
lines changed
main/kotlin/me/proxer/library/api/messenger
test/kotlin/me/proxer/library
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ internal interface InternalApi {
44
44
fun createConferenceGroup (
45
45
@Field(" topic" ) topic : String? ,
46
46
@Field(" text" ) firstMessage : String? ,
47
- @Field(" users" ) participants : List <String >?
47
+ @Field(" users[] " ) participants : List <String >?
48
48
): ProxerCall <String >
49
49
50
50
@FormUrlEncoded
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ class CreateConferenceGroupEndpointTest : ProxerTest() {
45
45
.execute()
46
46
}
47
47
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 " , " " )
49
51
}
50
52
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class HeaderInterceptorTest : ProxerTest() {
35
35
api.notifications.news().build().execute()
36
36
}
37
37
38
- request.headers.get( " proxer-api-key" ) shouldEqual " mock-key"
38
+ request.headers[ " proxer-api-key" ] shouldEqual " mock-key"
39
39
}
40
40
41
41
@Test
@@ -44,7 +44,7 @@ class HeaderInterceptorTest : ProxerTest() {
44
44
api.notifications.news().build().execute()
45
45
}
46
46
47
- request.headers.get( " User-Agent" ) shouldEqual " ProxerLibJava/$VERSION "
47
+ request.headers[ " User-Agent" ] shouldEqual " ProxerLibJava/$VERSION "
48
48
}
49
49
50
50
@Test
You can’t perform that action at this time.
0 commit comments