org.eclipse.core.tests.filesystem
Class FileCacheTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.eclipse.core.tests.harness.CoreTest
              extended by org.eclipse.core.tests.filesystem.FileSystemTest
                  extended by org.eclipse.core.tests.filesystem.FileCacheTest
All Implemented Interfaces:
junit.framework.Test

public class FileCacheTest
extends FileSystemTest

Tests the file caching provided by FileStore.toLocalFile.


Field Summary
 
Fields inherited from class org.eclipse.core.tests.harness.CoreTest
PI_HARNESS
 
Constructor Summary
FileCacheTest(java.lang.String name)
           
 
Method Summary
 void assertEquals(java.lang.String message, byte[] expected, byte[] actual)
          Overrides generic method from Assert to perform proper array equality test.
 void assertNotSame(java.lang.String message, byte[] expected, byte[] actual)
          Overrides generic method from Assert to perform proper array equality test.
static junit.framework.Test suite()
           
 void testCacheFile()
           
 void testCacheFolder()
           
 void testNoCacheFlag()
          Tests invoking the toLocalFile method without the CACHE option flag.
 void testNonExisting()
          Tests caching a non-existing file
 
Methods inherited from class org.eclipse.core.tests.harness.CoreTest
createFileInFileSystem, debug, fail, getContents, getContents, getMonitor, getRandomContents, getRandomLocation, getRandomString, getTempDir, getUniqueString, log, log, transferData, transferDataWithoutClose
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileCacheTest

public FileCacheTest(java.lang.String name)
Method Detail

suite

public static junit.framework.Test suite()

assertEquals

public void assertEquals(java.lang.String message,
                         byte[] expected,
                         byte[] actual)
Overrides generic method from Assert to perform proper array equality test.


assertNotSame

public void assertNotSame(java.lang.String message,
                          byte[] expected,
                          byte[] actual)
Overrides generic method from Assert to perform proper array equality test.


testCacheFile

public void testCacheFile()

testCacheFolder

public void testCacheFolder()

testNoCacheFlag

public void testNoCacheFlag()
Tests invoking the toLocalFile method without the CACHE option flag.


testNonExisting

public void testNonExisting()
Tests caching a non-existing file