X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Ffreenet%2Fwot%2FIdentityChangeDetectorTest.kt;h=aa1b7f0e17f03716f7627d3ccbfa530fe21bca18;hb=b56a4062442a92b2121f85a6aadd416be5eb03ac;hp=188a60a03f2096976e8870cf147fe16ab15c593e;hpb=c81b4be138453811e354898e842585a933050c4f;p=Sone.git 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 {