import net.pterodactylus.fcp.FcpKeyPair;
import net.pterodactylus.fcp.fake.FakeTcpServer;
+import org.junit.After;
import org.junit.Test;
/**
fcpClient = new DefaultFcpClient(threadPool, "localhost", fcpServer.getPort(), () -> "Test", () -> "2.0");
}
+ @After
+ public void tearDown() throws IOException {
+ fcpServer.close();
+ }
+
@Test
public void defaultFcpClientCanGenerateKeypair() throws ExecutionException, InterruptedException, IOException {
Future<FcpKeyPair> keyPairFuture = fcpClient.generateKeypair().execute();