|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.mucommander.file.AbstractFileTestCase
com.mucommander.file.impl.sftp.SFTPFileTestCase
public class SFTPFileTestCase
An AbstractFileTestCase implementation for SFTPFile.
The SFTP temporary folder where test files are created is defined by the TEMP_FOLDER_PROPERTY system property.
| Field Summary | |
|---|---|
static java.lang.String |
TEMP_FOLDER_PROPERTY
The system property that holds the URI to the temporary SFTP folder |
| Fields inherited from class com.mucommander.file.AbstractFileTestCase |
|---|
filesToDelete, random, tempFile |
| Constructor Summary | |
|---|---|
SFTPFileTestCase()
|
|
| Method Summary | |
|---|---|
AbstractFile |
getTemporaryFile()
Returns a temporary file that can be used for testing purposes. |
void |
testInputStream()
Tests AbstractFile.getInputStream(). |
void |
testRandomAccessInputStream()
Tests AbstractFile.hasRandomAccessInputStream() and AbstractFile.getRandomAccessInputStream(). |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TEMP_FOLDER_PROPERTY
| Constructor Detail |
|---|
public SFTPFileTestCase()
| Method Detail |
|---|
public void testInputStream()
throws java.io.IOException,
java.security.NoSuchAlgorithmException
AbstractFileTestCaseAbstractFile.getInputStream().
testInputStream in class AbstractFileTestCasejava.io.IOException - should not happen
java.security.NoSuchAlgorithmException - should not happen
public void testRandomAccessInputStream()
throws java.io.IOException,
java.security.NoSuchAlgorithmException
AbstractFileTestCaseAbstractFile.hasRandomAccessInputStream() and AbstractFile.getRandomAccessInputStream().
testRandomAccessInputStream in class AbstractFileTestCasejava.io.IOException - should not happen
java.security.NoSuchAlgorithmException - should not happen
public AbstractFile getTemporaryFile()
throws java.io.IOException
AbstractFileTestCaseAbstractFile.exists()
returns false.
getTemporaryFile in class AbstractFileTestCasejava.io.IOException - if an error occurred while creating a temporary file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard