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
The following commit(s) were added to refs/heads/release by this push:
new 64c6727 Format tweaks.
64c6727 is described below
commit 64c67272fd675eec3554b084c7559712dd760335
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Feb 8 13:03:25 2021 -0500
Format tweaks.
---
src/test/java/org/apache/commons/net/ftp/FTPClientTest.java | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/commons/net/ftp/FTPClientTest.java
b/src/test/java/org/apache/commons/net/ftp/FTPClientTest.java
index 0d0b43c..b0c3ad8 100644
--- a/src/test/java/org/apache/commons/net/ftp/FTPClientTest.java
+++ b/src/test/java/org/apache/commons/net/ftp/FTPClientTest.java
@@ -61,8 +61,8 @@ public class FTPClientTest extends TestCase {
}
public void testParseClient() {
- for(int i=0; i<TESTS.length; i+=2) {
- assertEquals("Failed to parse",TESTS[i+1],
FTPClient.parsePathname(TESTS[i]));
+ for (int i = 0; i < TESTS.length; i += 2) {
+ assertEquals("Failed to parse", TESTS[i + 1],
FTPClient.parsePathname(TESTS[i]));
}
}
@@ -84,7 +84,9 @@ public class FTPClientTest extends TestCase {
}
private static class LocalClient extends FTPClient {
+
private String systemType;
+
@Override
public String getSystemType() throws IOException {
return systemType;
@@ -93,6 +95,7 @@ public class FTPClientTest extends TestCase {
systemType = type;
}
}
+
public void testParserCachingNullKey() throws Exception {
final LocalClient client = new LocalClient();
client.setSystemType(FTPClientConfig.SYST_UNIX);
@@ -106,6 +109,7 @@ public class FTPClientTest extends TestCase {
client.createParser(null);
assertSame(entryParser, client.getEntryParser()); // parser was cached
}
+
public void testUnparseableFiles() throws Exception {
final ByteArrayOutputStream baos = new ByteArrayOutputStream();
baos.write("-rwxr-xr-x 2 root root 4096 Mar 2 15:13
zxbox".getBytes());