This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch release
in repository https://gitbox.apache.org/repos/asf/commons-net.git

commit ec77e3db00fa24422d9c47fe41be84f5fc1513bd
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Feb 8 13:20:01 2021 -0500

    Test hasFeature(FTPCmd).
---
 src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java 
b/src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java
index a79f1cd..300de79 100644
--- a/src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java
+++ b/src/test/java/org/apache/commons/net/ftp/FTPSClientTest.java
@@ -236,6 +236,17 @@ public class FTPSClientTest {
 
     @Test
     public void testOpenClose() throws SocketException, IOException {
+        final FTPSClient ftpsClient = loginClient();
+        try {
+            assertTrue(ftpsClient.hasFeature("MODE"));
+            assertTrue(ftpsClient.hasFeature(FTPCmd.MODE));
+        } finally {
+            ftpsClient.disconnect();
+        }
+    }
+
+    @Test
+    public void testHasFeature() throws SocketException, IOException {
         loginClient().disconnect();
     }
 

Reply via email to