Skip to content
Permalink
Browse files
More debug
  • Loading branch information
sebbASF committed Jul 27, 2021
1 parent 4e7a238 commit 3cd5d382f8344e1e8e556ddbea476b82015dd01b
Showing 1 changed file with 18 additions and 1 deletion.
@@ -225,14 +225,17 @@ private void retrieveFile(final String pathname) throws SocketException, IOExcep
assertTrue(pathname, client.retrieveFile(pathname, NullOutputStream.NULL_OUTPUT_STREAM));
assertTrue(pathname, client.retrieveFile(pathname, NullOutputStream.NULL_OUTPUT_STREAM));
} finally {
trace(">>disconnect");
client.disconnect();
trace("<<disconnect");
}
}

@Test
public void testHasFeature() throws SocketException, IOException {
trace(">>testHasFeature");
loginClient().disconnect();
trace("<<testHasFeature");
}

private void testListFiles(final String pathname) throws SocketException, IOException {
@@ -242,26 +245,31 @@ private void testListFiles(final String pathname) throws SocketException, IOExce
assertNotNull(client.listFiles(pathname));
assertNotNull(client.listFiles(pathname));
} finally {
trace(">>disconnect");
client.disconnect();
trace("<<disconnect");
}
}

@Test
public void testListFilesPathNameEmpty() throws SocketException, IOException {
trace(">>testListFilesPathNameEmpty");
testListFiles("");
trace("<<testListFilesPathNameEmpty");
}

@Test
public void testListFilesPathNameJunk() throws SocketException, IOException {
trace(">>testListFilesPathNameJunk");
testListFiles(" Junk ");
trace("<<testListFilesPathNameJunk");
}

@Test
public void testListFilesPathNameNull() throws SocketException, IOException {
trace(">>testListFilesPathNameNull");
testListFiles(null);
trace("<<testListFilesPathNameNull");
}

@Test
@@ -274,6 +282,7 @@ public void testListFilesPathNameRoot() throws SocketException, IOException {
public void testMdtmCalendar() throws SocketException, IOException {
trace(">>testMdtmCalendar");
testMdtmCalendar("/file.txt");
trace("<<testMdtmCalendar");
}

private void testMdtmCalendar(final String pathname) throws SocketException, IOException {
@@ -286,7 +295,9 @@ private void testMdtmCalendar(final String pathname) throws SocketException, IOE
assertNotNull(mdtmCalendar2);
assertEquals(mdtmCalendar1, mdtmCalendar2);
} finally {
trace(">>disconnect");
client.disconnect();
trace("<<disconnect");
}
}

@@ -304,14 +315,17 @@ private void testMdtmFile(final String pathname) throws SocketException, IOExcep
assertNotNull(mdtmFile2);
assertEquals(mdtmFile1, mdtmFile2);
} finally {
trace(">>disconnect");
client.disconnect();
trace("<<disconnect");
}
}

@Test
public void testMdtmInstant() throws SocketException, IOException {
trace(">>testMdtmInstant");
testMdtmInstant("/file.txt");
trace("<<testMdtmInstant");
}

private void testMdtmInstant(final String pathname) throws SocketException, IOException {
@@ -324,7 +338,9 @@ private void testMdtmInstant(final String pathname) throws SocketException, IOEx
assertNotNull(mdtmInstant2);
assertEquals(mdtmInstant1, mdtmInstant2);
} finally {
trace(">>disconnect");
client.disconnect();
trace("<<disconnect");
}
}

@@ -343,9 +359,10 @@ public void testOpenClose() throws SocketException, IOException {
trace("<<testOpenClose");
}

@Test
// @Test looks like this may be the hang?
public void testRetrieveFilePathNameRoot() throws SocketException, IOException {
trace(">>testRetrieveFilePathNameRoot");
retrieveFile("/file.txt");
trace("<<testRetrieveFilePathNameRoot");
}
}

0 comments on commit 3cd5d38

Please sign in to comment.