✅ Fix test for added or removed identities
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 23 Sep 2019 17:05:58 +0000 (19:05 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 23 Sep 2019 17:05:58 +0000 (19:05 +0200)
src/test/kotlin/net/pterodactylus/sone/freenet/wot/IdentityChangeDetectorTest.kt

index 188a60a..aa1b7f0 100644 (file)
@@ -130,12 +130,14 @@ class IdentityChangeDetectorTest {
        fun `no removed identities are detected without an identity processor`() {
                identityChangeDetector.onRemovedIdentity(null)
                identityChangeDetector.detectChanges(listOf(createIdentity1(), createIdentity3()))
        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()))
        }
 
        @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<Identity> {
        }
 
        private fun createOldIdentities(): Collection<Identity> {