From b9df07ce6555b754bbdb8f7486ea3ef312a030ee Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 1 Jul 2015 21:27:27 +0200 Subject: [PATCH] Add method to write several lines at once --- src/test/java/net/pterodactylus/fcp/fake/FakeTcpServer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 { -- 2.7.4