X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnet%2Fpterodactylus%2Futil%2Ffcp%2FFcpTest.java;h=7aca8676b34a97c7dc984d71331442841e557ac8;hb=d52efb700e50a4beebe9b0954dfef70041618901;hp=b07bb8593b85b4193811d54a7713172acdda8839;hpb=1b8dba8bf1acd70b80e51c5905fb5003b117175c;p=jSite2.git diff --git a/src/net/pterodactylus/util/fcp/FcpTest.java b/src/net/pterodactylus/util/fcp/FcpTest.java index b07bb85..7aca867 100644 --- a/src/net/pterodactylus/util/fcp/FcpTest.java +++ b/src/net/pterodactylus/util/fcp/FcpTest.java @@ -22,10 +22,6 @@ package net.pterodactylus.util.fcp; import java.io.IOException; import junit.framework.TestCase; -import net.pterodactylus.util.fcp.message.ClientHello; -import net.pterodactylus.util.fcp.message.CloseConnectionDuplicateClientName; -import net.pterodactylus.util.fcp.message.GenerateSSK; -import net.pterodactylus.util.fcp.message.NodeHello; /** * Tests various commands and the FCP connection. @@ -60,12 +56,10 @@ public class FcpTest extends TestCase { * Tests the FCP connection be simply {@link #setUp() setting it up} and * {@link #tearDown() tearing it down} again. * - * @throws FcpException - * if an FCP error occurs * @throws IOException * if an I/O error occurs */ - public void testFcpConnection() throws FcpException, IOException { + public void testFcpConnection() throws IOException { /* do nothing. */ } @@ -90,19 +84,17 @@ public class FcpTest extends TestCase { /** * Generates an SSK key pair. * - * @throws FcpException - * if an FCP error occurs * @throws IOException * if an I/O error occurs * @throws InterruptedException * if {@link Object#wait()} wakes up spuriously */ - public void testGenerateSSK() throws IOException, FcpException, InterruptedException { + public void testGenerateSSK() throws IOException, InterruptedException { final boolean[] result = new boolean[1]; FcpAdapter fcpAdapter = new FcpAdapter() { /** * @see net.pterodactylus.util.fcp.FcpAdapter#receivedNodeHello(net.pterodactylus.util.fcp.FcpConnection, - * net.pterodactylus.util.fcp.message.NodeHello) + * net.pterodactylus.util.fcp.NodeHello) */ @Override public void receivedNodeHello(FcpConnection fcpConnection, NodeHello nodeHello) { @@ -114,7 +106,7 @@ public class FcpTest extends TestCase { /** * @see net.pterodactylus.util.fcp.FcpAdapter#receivedCloseConnectionDuplicateClientName(net.pterodactylus.util.fcp.FcpConnection, - * net.pterodactylus.util.fcp.message.CloseConnectionDuplicateClientName) + * net.pterodactylus.util.fcp.CloseConnectionDuplicateClientName) */ @Override public void receivedCloseConnectionDuplicateClientName(FcpConnection fcpConnection, CloseConnectionDuplicateClientName closeConnectionDuplicateClientName) {