From 35b4749027c92138a5cce39a0a6e2a3718f76105 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 22 Aug 2015 19:02:29 +0200 Subject: [PATCH] Refactoring --- .../java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java b/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java index c37b5e0..6f9e52d 100644 --- a/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java +++ b/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java @@ -2002,6 +2002,10 @@ public class DefaultFcpClientTest { private void connectAndAssert(Supplier>> requestMatcher) throws InterruptedException, ExecutionException, IOException { connectNode(); + readMessage(requestMatcher); + } + + private void readMessage(Supplier>> requestMatcher) throws IOException { lines = fcpServer.collectUntil(is("EndMessage")); identifier = extractIdentifier(lines); assertThat(lines, requestMatcher.get()); -- 2.7.4