From: David ‘Bombe’ Roden Date: Fri, 21 Aug 2015 20:26:57 +0000 (+0200) Subject: Omit parameter X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ef3a2dc2937162bc808695cd2d948a07db0f011f;p=jFCPlib.git Omit parameter --- diff --git a/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java b/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java index 63d9394..c555f20 100644 --- a/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java +++ b/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java @@ -2013,7 +2013,7 @@ public class DefaultFcpClientTest { fcpClient.loadPlugin().officialFromFreenet("superPlugin").execute(); connectAndAssert(() -> createMatcherForOfficialSource("freenet")); assertThat(lines, not(contains(startsWith("Store=")))); - replyWithPluginInfo(identifier); + replyWithPluginInfo(); verifyPluginInfo(pluginInfo); } @@ -2023,7 +2023,7 @@ public class DefaultFcpClientTest { fcpClient.loadPlugin().addToConfig().officialFromFreenet("superPlugin").execute(); connectAndAssert(() -> createMatcherForOfficialSource("freenet")); assertThat(lines, hasItem("Store=true")); - replyWithPluginInfo(identifier); + replyWithPluginInfo(); verifyPluginInfo(pluginInfo); } @@ -2032,7 +2032,7 @@ public class DefaultFcpClientTest { Future> pluginInfo = fcpClient.loadPlugin().officialFromHttps("superPlugin").execute(); connectAndAssert(() -> createMatcherForOfficialSource("https")); - replyWithPluginInfo(identifier); + replyWithPluginInfo(); verifyPluginInfo(pluginInfo); } @@ -2059,7 +2059,7 @@ public class DefaultFcpClientTest { public void fromFile() throws ExecutionException, InterruptedException, IOException { Future> pluginInfo = fcpClient.loadPlugin().fromFile(FILE_PATH).execute(); connectAndAssert(() -> createMatcher("file", FILE_PATH)); - replyWithPluginInfo(identifier); + replyWithPluginInfo(); verifyPluginInfo(pluginInfo); } @@ -2067,7 +2067,7 @@ public class DefaultFcpClientTest { public void fromUrl() throws ExecutionException, InterruptedException, IOException { Future> pluginInfo = fcpClient.loadPlugin().fromUrl(URL).execute(); connectAndAssert(() -> createMatcher("url", URL)); - replyWithPluginInfo(identifier); + replyWithPluginInfo(); verifyPluginInfo(pluginInfo); } @@ -2075,7 +2075,7 @@ public class DefaultFcpClientTest { public void fromFreenet() throws ExecutionException, InterruptedException, IOException { Future> pluginInfo = fcpClient.loadPlugin().fromFreenet(KEY).execute(); connectAndAssert(() -> createMatcher("freenet", KEY)); - replyWithPluginInfo(identifier); + replyWithPluginInfo(); verifyPluginInfo(pluginInfo); } @@ -2110,7 +2110,7 @@ public class DefaultFcpClientTest { } - private void replyWithPluginInfo(String identifier) throws IOException { + private void replyWithPluginInfo() throws IOException { fcpServer.writeLine( "PluginInfo", "Identifier=" + identifier,