From ef3a2dc2937162bc808695cd2d948a07db0f011f Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 21 Aug 2015 22:26:57 +0200 Subject: [PATCH] Omit parameter --- .../pterodactylus/fcp/quelaton/DefaultFcpClientTest.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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, -- 2.7.4