X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2Fquelaton%2FDefaultFcpClientTest.java;h=428ee045a1652030a87f632c8f23f5bcbfb44547;hb=a09c7dc8182d6238b8e635d0da96ed19b3ca87bd;hp=32837ddaef466711a0d613f7f6b67c6b6a2be0b1;hpb=91d4989b0414df35d2a3e8b7507931e36667725b;p=jFCPlib.git diff --git a/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java b/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java index 32837dd..428ee04 100644 --- a/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java +++ b/src/test/java/net/pterodactylus/fcp/quelaton/DefaultFcpClientTest.java @@ -1866,7 +1866,7 @@ public class DefaultFcpClientTest { @Test public void works() throws InterruptedException, ExecutionException, IOException { Future> dataFuture = fcpClient.clientGet().uri("KSK@foo.txt").execute(); - connectAndAssert(() -> matchesFcpMessage("ClientGet", "URI=KSK@foo.txt")); + connectAndAssert(() -> matchesFcpMessage("ClientGet", "URI=KSK@foo.txt", "ReturnType=direct")); replyWithAllData("not-test", "Hello World", "text/plain;charset=latin-9"); replyWithAllData(identifier, "Hello", "text/plain;charset=utf-8"); Optional data = dataFuture.get(); @@ -1877,6 +1877,7 @@ public class DefaultFcpClientTest { public void getFailedIsRecognized() throws InterruptedException, ExecutionException, IOException { Future> dataFuture = fcpClient.clientGet().uri("KSK@foo.txt").execute(); connectAndAssert(() -> matchesFcpMessage("ClientGet", "URI=KSK@foo.txt")); + replyWithGetFailed("not-test"); replyWithGetFailed(identifier); Optional data = dataFuture.get(); assertThat(data.isPresent(), is(false));