From b56a4062442a92b2121f85a6aadd416be5eb03ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 23 Sep 2019 19:05:58 +0200 Subject: [PATCH] =?utf8?q?=E2=9C=85=20Fix=20test=20for=20added=20or=20remo?= =?utf8?q?ved=20identities?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../net/pterodactylus/sone/freenet/wot/IdentityChangeDetectorTest.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/kotlin/net/pterodactylus/sone/freenet/wot/IdentityChangeDetectorTest.kt b/src/test/kotlin/net/pterodactylus/sone/freenet/wot/IdentityChangeDetectorTest.kt index 188a60a..aa1b7f0 100644 --- a/src/test/kotlin/net/pterodactylus/sone/freenet/wot/IdentityChangeDetectorTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/freenet/wot/IdentityChangeDetectorTest.kt @@ -130,12 +130,14 @@ class IdentityChangeDetectorTest { fun `no removed identities are detected without an identity processor`() { identityChangeDetector.onRemovedIdentity(null) identityChangeDetector.detectChanges(listOf(createIdentity1(), createIdentity3())) + assertThat(removedIdentities, empty()) } @Test fun `no added identities are detected without an identity processor`() { identityChangeDetector.onNewIdentity(null) identityChangeDetector.detectChanges(listOf(createIdentity1(), createIdentity2(), createIdentity3(), createIdentity4())) + assertThat(newIdentities, empty()) } private fun createOldIdentities(): Collection { -- 2.7.4