org.eclipse.core.tests.resources
Class ResourceURLTest

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.resources.ResourceTest
                  extended by org.eclipse.core.tests.resources.ResourceURLTest
All Implemented Interfaces:
junit.framework.Test

public class ResourceURLTest
extends ResourceTest

Test suites for PlatformURLResourceConnection


Field Summary
 
Fields inherited from class org.eclipse.core.tests.resources.ResourceTest
deltaListener, PI_RESOURCES_TESTS
 
Fields inherited from class org.eclipse.core.tests.harness.CoreTest
PI_HARNESS
 
Constructor Summary
ResourceURLTest()
          Need a zero argument constructor to satisfy the test harness.
ResourceURLTest(java.lang.String name)
           
 
Method Summary
 java.lang.String[] defineHierarchy()
          Returns a collection of string paths describing the standard resource hierarchy for this test.
 void doCleanup()
           
static junit.framework.Test suite()
           
 void testBasicURLs()
           
 void testExternalURLs()
           
 void testNonExistantURLs()
           
 void testSpaces()
          Tests decoding of normalized URLs containing spaces
 
Methods inherited from class org.eclipse.core.tests.resources.ResourceTest
assertDoesNotExistInFileSystem, assertDoesNotExistInFileSystem, assertDoesNotExistInFileSystem, assertDoesNotExistInFileSystem, assertDoesNotExistInWorkspace, assertDoesNotExistInWorkspace, assertDoesNotExistInWorkspace, assertDoesNotExistInWorkspace, assertExistsInFileSystem, assertExistsInFileSystem, assertExistsInFileSystem, assertExistsInFileSystem, assertExistsInWorkspace, assertExistsInWorkspace, assertExistsInWorkspace, assertExistsInWorkspace, assertExistsInWorkspace, assertExistsInWorkspace, assertExistsInWorkspace, assertExistsInWorkspace, buildResources, buildResources, compareContent, createFileInFileSystem, createFileInFileSystem, createFileInFileSystem, createFileInFileSystem, createHierarchy, ensureDoesNotExistInFileSystem, ensureDoesNotExistInFileSystem, ensureDoesNotExistInWorkspace, ensureDoesNotExistInWorkspace, ensureExistsInFileSystem, ensureExistsInFileSystem, ensureExistsInFileSystem, ensureExistsInWorkspace, ensureExistsInWorkspace, ensureExistsInWorkspace, ensureExistsInWorkspace, ensureOutOfSync, getUniqueString, getWorkspace
 
Methods inherited from class org.eclipse.core.tests.harness.CoreTest
createFileInFileSystem, debug, fail, getContents, getContents, getMonitor, getRandomContents, getRandomLocation, getRandomString, getTempDir, 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

ResourceURLTest

public ResourceURLTest()
Need a zero argument constructor to satisfy the test harness. This constructor should not do any real work nor should it be called by user code.


ResourceURLTest

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

suite

public static junit.framework.Test suite()

defineHierarchy

public java.lang.String[] defineHierarchy()
Returns a collection of string paths describing the standard resource hierarchy for this test. In the string forms, folders are represented as having trailing separators ('/'). All other resources are files. It is generally assumed that this hierarchy will be inserted under some solution and project structure.

Overrides:
defineHierarchy in class ResourceTest

doCleanup

public void doCleanup()
               throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

testBasicURLs

public void testBasicURLs()
                   throws java.lang.Throwable
Throws:
java.lang.Throwable

testExternalURLs

public void testExternalURLs()
                      throws java.lang.Throwable
Throws:
java.lang.Throwable

testNonExistantURLs

public void testNonExistantURLs()
                         throws java.lang.Throwable
Throws:
java.lang.Throwable

testSpaces

public void testSpaces()
Tests decoding of normalized URLs containing spaces

Throws:
org.eclipse.core.runtime.CoreException