From c55f69cfecd764a96a2eefc14d37cb3dad1942ca Mon Sep 17 00:00:00 2001 From: Distractic Date: Wed, 16 Jun 2021 10:31:25 +0200 Subject: [PATCH] tests: Remove test file --- .../LiveCancellationExceptionTest.kt | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100644 core/src/test/kotlin/live/exception/LiveCancellationExceptionTest.kt diff --git a/core/src/test/kotlin/live/exception/LiveCancellationExceptionTest.kt b/core/src/test/kotlin/live/exception/LiveCancellationExceptionTest.kt deleted file mode 100644 index 165fab8a023..00000000000 --- a/core/src/test/kotlin/live/exception/LiveCancellationExceptionTest.kt +++ /dev/null @@ -1,32 +0,0 @@ -package live.exception - -import dev.kord.core.Kord -import dev.kord.core.event.Event -import dev.kord.core.live.exception.LiveCancellationException -import kotlin.test.Test -import kotlin.test.assertFailsWith - -class LiveCancellationExceptionTest { - - inner class EventMock : Event { - override val kord: Kord - get() = error("Never called") - override val shard: Int - get() = error("Never called") - } - - @Test - fun `Throw exception without message`() { - assertFailsWith { - throw LiveCancellationException(EventMock(), null) - } - } - - @Test - @Throws(LiveCancellationException::class) - fun `Throw exception with message`() { - assertFailsWith { - throw LiveCancellationException(EventMock(), "A reason") - } - } -} \ No newline at end of file