Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyv404 committed Jan 30, 2024
1 parent 0bb6f9a commit 02627a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import kotlinx.serialization.Serializable
@Serializable
data class MinecraftPlayerApiModel(
val id: String,
val name: String,
val uuid: String,
val lastLoginTime: String,
val lastLoginServer: String,
val permissions: Permissions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ internal class PlayerKtTest : DatabaseTest() {
NfClock.mockTime(clock)
client.get("/lab/minecraftSever/players/online").apply {
assertEquals(HttpStatusCode.OK, status)
assertEquals("{\"code\":2001,\"msg\":\"接口调用成功\",\"data\":[{\"id\":\"Test\",\"name\":\"test\",\"lastLoginTime\":\"2006-04-16T06:58:39.810\",\"lastLoginServer\":\"Test\",\"permissions\":\"OP\"},{\"id\":\"Test2\",\"name\":\"test2\",\"lastLoginTime\":\"2006-04-16T06:58:39.810\",\"lastLoginServer\":\"Test\",\"permissions\":\"Default\"},{\"id\":\"2429334909\",\"name\":\"2429334909\",\"lastLoginTime\":\"2006-04-16T06:58:39.810\",\"lastLoginServer\":\"Test\",\"permissions\":\"Default\"}]}", bodyAsText())
assertEquals("{\"code\":2001,\"msg\":\"接口调用成功\",\"data\":[{\"id\":\"Test\",\"uuid\":\"test\",\"lastLoginTime\":\"2006-04-16T06:58:39.810\",\"lastLoginServer\":\"Test\",\"permissions\":\"OP\"},{\"id\":\"Test2\",\"uuid\":\"test2\",\"lastLoginTime\":\"2006-04-16T06:58:39.810\",\"lastLoginServer\":\"Test\",\"permissions\":\"Default\"},{\"id\":\"2429334909\",\"uuid\":\"2429334909\",\"lastLoginTime\":\"2006-04-16T06:58:39.810\",\"lastLoginServer\":\"Test\",\"permissions\":\"Default\"}]}", bodyAsText())
}
}
}

0 comments on commit 02627a7

Please sign in to comment.