mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-06 08:40:03 +00:00
Fix kotlin code style issues
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
|
||||
import io.mockk.verify
|
||||
import org.apollo.game.message.impl.ButtonMessage
|
||||
import org.apollo.game.model.entity.Player
|
||||
@@ -8,20 +7,19 @@ import org.junit.jupiter.api.Test
|
||||
import org.junit.jupiter.api.extension.ExtendWith
|
||||
|
||||
@ExtendWith(ApolloTestingExtension::class)
|
||||
class LogoutTests {
|
||||
class LogoutTests {
|
||||
|
||||
companion object {
|
||||
const val LOGOUT_BUTTON_ID = 2458
|
||||
}
|
||||
companion object {
|
||||
const val LOGOUT_BUTTON_ID = 2458
|
||||
}
|
||||
|
||||
@TestMock
|
||||
lateinit var player: Player
|
||||
|
||||
@Test
|
||||
@Test
|
||||
fun `The player should be logged out when they click the logout button`() {
|
||||
player.send(ButtonMessage(LOGOUT_BUTTON_ID))
|
||||
player.send(ButtonMessage(LOGOUT_BUTTON_ID))
|
||||
|
||||
verify { player.logout() }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user