don't use deprecated method
[jFCPlib.git] / src / net / pterodactylus / fcp / FcpTest.java
index a47cbca..9e0c0c5 100644 (file)
@@ -25,7 +25,7 @@ import junit.framework.TestCase;
 
 /**
  * Tests various commands and the FCP connection.
- * 
+ *
  * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
  * @version $Id$
  */
@@ -49,7 +49,7 @@ public class FcpTest extends TestCase {
         */
        @Override
        protected void tearDown() throws Exception {
-               fcpConnection.disconnect();
+               fcpConnection.close();
        }
 
        /**
@@ -62,7 +62,7 @@ public class FcpTest extends TestCase {
 
        /**
         * Generates an SSK key pair.
-        * 
+        *
         * @throws IOException
         *             if an I/O error occurs
         * @throws InterruptedException