From: David ‘Bombe’ Roden Date: Fri, 1 Nov 2019 19:08:34 +0000 (+0100) Subject: 🚑 fix first tests X-Git-Tag: v81^2~79 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ba6c20970d47daba937e820e0326298165990d9e;p=Sone.git 🚑 fix first tests --- 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 e795328..2d02e3a 100644 --- a/src/test/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustConnectorTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/freenet/wot/WebOfTrustConnectorTest.kt @@ -51,25 +51,25 @@ class WebOfTrustConnectorTest { @Test fun `trusted identities are requested with correct own identity`() { - val pluginConnector = createPluginConnector("GetIdentitiesByScore", hasField("Truster", equalTo("id"))) + createPluginConnector("GetIdentitiesByScore", hasField("Truster", equalTo("id"))) .connect { loadTrustedIdentities(ownIdentity) } } @Test fun `trusted identities are requested with correct selection parameter`() { - val pluginConnector = createPluginConnector("GetIdentitiesByScore", hasField("Selection", equalTo("+"))) + createPluginConnector("GetIdentitiesByScore", hasField("Selection", equalTo("+"))) .connect { loadTrustedIdentities(ownIdentity) } } @Test fun `trusted identities are requested with empty context if null context requested`() { - val pluginConnector = createPluginConnector("GetIdentitiesByScore", hasField("Context", equalTo(""))) + createPluginConnector("GetIdentitiesByScore", hasField("Context", equalTo(""))) .connect { loadTrustedIdentities(ownIdentity) } } @Test fun `trusted identities are requested with context if context requested`() { - val pluginConnector = createPluginConnector("GetIdentitiesByScore", hasField("Context", equalTo("TestContext"))) + createPluginConnector("GetIdentitiesByScore", hasField("Context", equalTo("TestContext"))) .connect { loadTrustedIdentities(ownIdentity, "TestContext") } }