Fix kotlin code style issues

This commit is contained in:
Gary Tierney
2018-09-04 04:43:34 +01:00
parent b6086d57b8
commit 475c7ac741
89 changed files with 338 additions and 435 deletions
+7 -9
View File
@@ -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() }
}
}
}