Refactoring
[jFCPlib.git] / src / test / java / net / pterodactylus / fcp / quelaton / DefaultFcpClientTest.java
index c37b5e0..6f9e52d 100644 (file)
@@ -2002,6 +2002,10 @@ public class DefaultFcpClientTest {
        private void connectAndAssert(Supplier<Matcher<List<String>>> requestMatcher)
        throws InterruptedException, ExecutionException, IOException {
                connectNode();
+               readMessage(requestMatcher);
+       }
+
+       private void readMessage(Supplier<Matcher<List<String>>> requestMatcher) throws IOException {
                lines = fcpServer.collectUntil(is("EndMessage"));
                identifier = extractIdentifier(lines);
                assertThat(lines, requestMatcher.get());