use of org.apache.ftpserver.ftplet.FtpletResult in project ddf by codice.
the class FtpRequestHandlerTest method testOnDeleteStart.
@Test
public void testOnDeleteStart() throws FtpException, IOException {
FtpletResult result = ftplet.onDeleteStart(session, request);
assertEquals(FtpletResult.SKIP, result);
assertThat(getReplyCodes(), hasItem(250));
}
use of org.apache.ftpserver.ftplet.FtpletResult in project ddf by codice.
the class FtpRequestHandlerTest method testFileIngestSuccess.
@Test
public void testFileIngestSuccess() throws FtpException, IOException, SourceUnavailableException, IngestException {
setupIngest();
FtpletResult result = ftplet.onUploadStart(session, request);
assertEquals(FtpletResult.SKIP, result);
}
use of org.apache.ftpserver.ftplet.FtpletResult in project ddf by codice.
the class FtpRequestHandlerTest method testOnSite.
@Test
public void testOnSite() throws FtpException, IOException {
FtpletResult result = ftplet.onSite(session, request);
assertEquals(FtpletResult.SKIP, result);
assertThat(getReplyCodes(), hasItem(202));
}
use of org.apache.ftpserver.ftplet.FtpletResult in project ddf by codice.
the class FtpRequestHandlerTest method testOnDownloadStart.
@Test
public void testOnDownloadStart() throws FtpException, IOException {
FtpletResult result = ftplet.onDownloadStart(session, request);
assertEquals(FtpletResult.SKIP, result);
assertThat(getReplyCodes(), hasItem(250));
}
use of org.apache.ftpserver.ftplet.FtpletResult in project ddf by codice.
the class FtpRequestHandlerTest method testOnAppendStart.
@Test
public void testOnAppendStart() throws FtpException, IOException {
FtpletResult result = ftplet.onAppendStart(session, request);
assertEquals(FtpletResult.SKIP, result);
assertThat(getReplyCodes(), hasItem(250));
}
Aggregations