X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fcore%2FDefaultElementLoaderTest.kt;h=40d005413787e6a1f6f54b60af02c615a72529f2;hb=be19285f3675a43301737169f5f3c19cde489da7;hp=ed66dd901e047d6da12d583ccd8638e9479c46d2;hpb=27a0934b7e68315756020e0de0bc2564355be90a;p=Sone.git diff --git a/src/test/kotlin/net/pterodactylus/sone/core/DefaultElementLoaderTest.kt b/src/test/kotlin/net/pterodactylus/sone/core/DefaultElementLoaderTest.kt index ed66dd9..40d0054 100644 --- a/src/test/kotlin/net/pterodactylus/sone/core/DefaultElementLoaderTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/core/DefaultElementLoaderTest.kt @@ -71,21 +71,21 @@ class DefaultElementLoaderTest { } @Test - fun `element loader does cancel on audio mime type`() { + fun `element loader does cancel on audio mime type`() { elementLoader.loadElement(IMAGE_ID) verify(freenetInterface).startFetch(eq(freenetURI), callback.capture()) assertThat(callback.value.shouldCancel(freenetURI, "audio/mpeg", sizeOkay), `is`(true)) } @Test - fun `element loader does not cancel on video mime type`() { + fun `element loader does cancel on video mime type`() { elementLoader.loadElement(IMAGE_ID) verify(freenetInterface).startFetch(eq(freenetURI), callback.capture()) assertThat(callback.value.shouldCancel(freenetURI, "video/mkv", sizeOkay), `is`(true)) } @Test - fun `element loader does not cancel on text mime type`() { + fun `element loader does cancel on text mime type`() { elementLoader.loadElement(IMAGE_ID) verify(freenetInterface).startFetch(eq(freenetURI), callback.capture()) assertThat(callback.value.shouldCancel(freenetURI, "text/plain", sizeOkay), `is`(true))