|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.AbstractVfsTestCase
org.apache.commons.vfs2.test.AbstractProviderTestCase
org.apache.commons.vfs2.test.ProviderWriteTests
public class ProviderWriteTests
File system test that check that a file system can be modified.
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.vfs2.test.AbstractProviderTestCase |
|---|
FILE1_CONTENT, TEST_FILE_CONTENT |
| Constructor Summary | |
|---|---|
ProviderWriteTests()
|
|
| Method Summary | |
|---|---|
protected FileObject |
createScratchFolder()
Sets up a scratch folder for the test to use. |
protected Capability[] |
getRequiredCaps()
Returns the capabilities required by the tests of this test case. |
void |
testCopySameFileSystem()
Tests file copy to and from the same filesystem type. |
void |
testCreateDeleteCreateSameFileSystem()
Tests create-delete-create-a-file sequence on the same file system. |
void |
testDelete()
Tests deletion |
void |
testFileCreate()
Tests file creation |
void |
testFileCreateMismatched()
Tests file/folder creation with mismatched types. |
void |
testFolderCreate()
Tests folder creation. |
void |
testListChildren()
Test that children are handled correctly by create and delete. |
void |
testListener()
Check listeners are notified of changes. |
void |
testOverwriteSameFileSystem()
Tests overwriting a file on the same file system. |
| Methods inherited from class org.apache.commons.vfs2.test.AbstractProviderTestCase |
|---|
addEmptyDir, assertSameContent, assertSameURLContent, buildExpectedStructure, createManager, getBaseFolder, getBaseTestFolder, getManager, getProviderConfig, getReadFolder, getWriteFolder, notConfigured, runTest, setConfig, setMethod, setWriteFolder |
| Methods inherited from class org.apache.commons.AbstractVfsTestCase |
|---|
assertSameMessage, assertSameMessage, assertSameMessage, assertSameMessage, equals, getCanonicalFile, getCause, getPackageName, getResourceTestDirectory, getTestDirectory, getTestDirectory, getTestDirectoryFile, getTestResource, getTestResource |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, setName, setUp, tearDown, 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 |
| Constructor Detail |
|---|
public ProviderWriteTests()
| Method Detail |
|---|
protected Capability[] getRequiredCaps()
getRequiredCaps in class AbstractProviderTestCase
protected FileObject createScratchFolder()
throws Exception
Exception
public void testFolderCreate()
throws Exception
Exception
public void testFileCreate()
throws Exception
Exception
public void testFileCreateMismatched()
throws Exception
Exception
public void testDelete()
throws Exception
Exception
public void testCopySameFileSystem()
throws Exception
Exception
public void testOverwriteSameFileSystem()
throws Exception
Exception
public void testCreateDeleteCreateSameFileSystem()
throws Exception
Exception
public void testListChildren()
throws Exception
Exception
public void testListener()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||