From: David ‘Bombe’ Roden Date: Fri, 1 Nov 2019 18:10:07 +0000 (+0100) Subject: ✅ Add tests for WOTC.removeProperty X-Git-Tag: v81^2~83 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8826e7097782e2694de2aaae78d7bc546b18cbae;p=Sone.git ✅ Add tests for WOTC.removeProperty --- diff --git a/src/test/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustConnectorTest.kt b/src/test/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustConnectorTest.kt index afde66b..f7542b5 100644 --- a/src/test/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustConnectorTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustConnectorTest.kt @@ -197,6 +197,18 @@ class WebOfTrustConnectorTest { .connect { setProperty(ownIdentity, "TestProperty", "TestValue") } } + @Test + fun `removing a property sends the correct identity id`() { + createPluginConnector("RemoveProperty", hasField("Identity", equalTo(ownIdentity.id))) + .connect { removeProperty(ownIdentity, "TestProperty") } + } + + @Test + fun `removing a property sends the correct property name`() { + createPluginConnector("RemoveProperty", hasField("Property", equalTo("TestProperty"))) + .connect { removeProperty(ownIdentity, "TestProperty") } + } + } private fun PluginConnector.connect(block: WebOfTrustConnector.() -> R) =