From: David ‘Bombe’ Roden Date: Wed, 1 Jul 2015 19:27:27 +0000 (+0200) Subject: Add method to write several lines at once X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b9df07ce6555b754bbdb8f7486ea3ef312a030ee;p=jFCPlib.git Add method to write several lines at once --- diff --git a/src/test/java/net/pterodactylus/fcp/fake/FakeTcpServer.java b/src/test/java/net/pterodactylus/fcp/fake/FakeTcpServer.java index 6b3674a..e988ff3 100644 --- a/src/test/java/net/pterodactylus/fcp/fake/FakeTcpServer.java +++ b/src/test/java/net/pterodactylus/fcp/fake/FakeTcpServer.java @@ -44,8 +44,10 @@ public class FakeTcpServer implements AutoCloseable { return clientSocket.get().collectUntil(lineMatcher); } - public void writeLine(String line) throws IOException { - clientSocket.get().writeLine(line); + public void writeLine(String... lines) throws IOException { + for (String line : lines) { + clientSocket.get().writeLine(line); + } } public String readLine() throws IOException {