X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FGetLocalSonesCommandTest.kt;fp=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FGetLocalSonesCommandTest.kt;h=bd7ddaca63d1ff1be8176f9865745d13f5c737c3;hb=5684bc4813ffdbe26af73cb3cf6a1f62abbadedb;hp=e3cda98a7158d75dd0549cb4aa823427e375a430;hpb=eb1602e49345ba9fb42e4c1758651543cb1c45b9;p=Sone.git diff --git a/src/test/kotlin/net/pterodactylus/sone/fcp/GetLocalSonesCommandTest.kt b/src/test/kotlin/net/pterodactylus/sone/fcp/GetLocalSonesCommandTest.kt index e3cda98..bd7ddac 100644 --- a/src/test/kotlin/net/pterodactylus/sone/fcp/GetLocalSonesCommandTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/fcp/GetLocalSonesCommandTest.kt @@ -1,9 +1,6 @@ package net.pterodactylus.sone.fcp import net.pterodactylus.sone.core.Core -import net.pterodactylus.sone.data.Profile -import net.pterodactylus.sone.data.Sone -import net.pterodactylus.sone.test.mock import net.pterodactylus.sone.test.whenever import org.hamcrest.MatcherAssert.assertThat import org.hamcrest.Matchers.equalTo @@ -21,16 +18,6 @@ class GetLocalSonesCommandTest : SoneCommandTest() { assertThat(command.requiresWriteAccess(), equalTo(false)) } - private fun createSone(id: String, name: String, firstName: String, lastName: String, time: Long) = mock().apply { - whenever(this.id).thenReturn(id) - whenever(this.name).thenReturn(name) - whenever(profile).thenReturn(Profile(this).apply { - this.firstName = firstName - this.lastName = lastName - }) - whenever(this.time).thenReturn(time) - } - @Test fun `command returns local sones`() { val localSones = setOf(