org.apache.commons.vfs2.test
Class ProviderDeleteTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.AbstractVfsTestCase
              extended by org.apache.commons.vfs2.test.AbstractProviderTestCase
                  extended by org.apache.commons.vfs2.test.ProviderDeleteTests
All Implemented Interfaces:
junit.framework.Test

public class ProviderDeleteTests
extends AbstractProviderTestCase

File system test that do some delete operations.

Author:
Mario Ivankovits

Field Summary
 
Fields inherited from class org.apache.commons.vfs2.test.AbstractProviderTestCase
FILE1_CONTENT, TEST_FILE_CONTENT
 
Constructor Summary
ProviderDeleteTests()
           
 
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 testDeleteAllFiles()
          deletes files
 void testDeleteFile()
          deletes a single file
 void testDeleteFiles()
          deletes the complete structure
 void testDeleteNonExistantFile()
          Deletes a non existent file
 void testDeleteOneFiles()
          deletes a.txt
 
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

ProviderDeleteTests

public ProviderDeleteTests()
Method Detail

getRequiredCaps

protected Capability[] getRequiredCaps()
Returns the capabilities required by the tests of this test case.

Overrides:
getRequiredCaps in class AbstractProviderTestCase

createScratchFolder

protected FileObject createScratchFolder()
                                  throws Exception
Sets up a scratch folder for the test to use.

Throws:
Exception

testDeleteFiles

public void testDeleteFiles()
                     throws Exception
deletes the complete structure

Throws:
Exception

testDeleteFile

public void testDeleteFile()
                    throws Exception
deletes a single file

Throws:
Exception

testDeleteNonExistantFile

public void testDeleteNonExistantFile()
                               throws Exception
Deletes a non existent file

Throws:
Exception

testDeleteAllFiles

public void testDeleteAllFiles()
                        throws Exception
deletes files

Throws:
Exception

testDeleteOneFiles

public void testDeleteOneFiles()
                        throws Exception
deletes a.txt

Throws:
Exception


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.