✅ Fix test for added or removed identities
[Sone.git] / 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()))
+               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<Identity> {