org.apache.commons.vfs2.test
Class LastModifiedTests

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.LastModifiedTests
All Implemented Interfaces:
junit.framework.Test

public class LastModifiedTests
extends AbstractProviderTestCase

Test cases for getting and setting file last modified time.

Author:
Adam Murdoch

Field Summary
 
Fields inherited from class org.apache.commons.vfs2.test.AbstractProviderTestCase
FILE1_CONTENT, TEST_FILE_CONTENT
 
Constructor Summary
LastModifiedTests()
           
 
Method Summary
protected  Capability[] getRequiredCaps()
          Returns the capabilities required by the tests of this test case.
 void testGetLastModified()
          Tests getting the last modified time of a file.
 void testSetLastModified()
          Tests setting the last modified time of file.
 
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

LastModifiedTests

public LastModifiedTests()
Method Detail

getRequiredCaps

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

Overrides:
getRequiredCaps in class AbstractProviderTestCase

testGetLastModified

public void testGetLastModified()
                         throws Exception
Tests getting the last modified time of a file.

Throws:
Exception

testSetLastModified

public void testSetLastModified()
                         throws Exception
Tests setting the last modified time of file.

Throws:
Exception


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