|
||||||||||
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.eclipse.core.tests.harness.CoreTest
org.eclipse.core.tests.resources.ResourceTest
org.eclipse.core.tests.resources.LinkedResourceTest
public class LinkedResourceTest
Tests the following API methods:
IFile#createLink
IFolder#createLink
This test supports both variable-based and non-variable-based locations.
Although the method used for creating random locations
ResourceTest#getRandomLocation()
never returns variable-
based paths, this method is overwritten in the derived class
LinkedResourceWithPathVariable
to always return variable-based
paths.
To support variable-based paths wherever a file system location is used, it
is mandatory first to resolve it and only then using it, except in calls to
IFile#createLink
and IFolder#createLink
and when
the location is obtained using IResource#getLocation()
.
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 | |
---|---|
LinkedResourceTest()
|
|
LinkedResourceTest(java.lang.String name)
|
Method Summary | |
---|---|
static junit.framework.Test |
suite()
|
void |
testAllowMissingLocal()
Tests creation of a linked resource whose corresponding file system path does not exist. |
void |
testBlockedFolder()
Tests case where a resource in the file system cannot be added to the workspace because it is blocked by a linked resource of the same name. |
void |
testChangeLinkGender()
This test creates a linked folder resource, then changes the directory in the file system to be a file. |
void |
testCopyFile()
|
void |
testCopyFolder()
|
void |
testCopyMissingFile()
Tests copying a linked file resource that doesn't exist in the file system |
void |
testCopyMissingFolder()
Tests copying a linked folder that doesn't exist in the file system |
void |
testCopyProjectWithLinks()
|
void |
testCreateFolderInBackground()
Tests creating a linked folder and performing refresh in the background |
void |
testCreateHiddenLinkedResources()
Tests whether IFile.createLink(org.eclipse.core.runtime.IPath, int, org.eclipse.core.runtime.IProgressMonitor) and IFolder.createLink(org.eclipse.core.runtime.IPath, int, org.eclipse.core.runtime.IProgressMonitor)
handle IResource.HIDDEN flag properly. |
void |
testCreateLinkCaseVariant()
Tests creating a linked resource with the same name but different case as an existing resource. |
void |
testCreateLinkInDotProject()
Tests creating a linked resource by modifying the .project file directly. |
void |
testCreateProjectWithDeepLinks()
Tests creating a project whose .project file already defines links at depth greater than one. |
void |
testDeepMoveProjectWithLinks()
|
void |
testDeleteFolderWithLinks()
Tests bug 209175. |
void |
testDeleteLinkParent()
Tests deleting the parent of a linked resource. |
void |
testDeleteProjectWithLinks()
Tests deleting and then recreating a project |
void |
testFindFilesForLocationCaseVariant()
Tests that IWorkspaceRoot.findFilesForLocation works correctly in presence of a linked resource that does not match the case in the file system |
void |
testIsLinked()
Tests the IResource.isLinked(int) method. |
void |
testLinkedFileInLinkedFolder()
Specific testing of links within links. |
void |
testLinkFile()
Automated test of IFile#createLink |
void |
testLinkFolder()
Automated test of IFolder#createLink |
void |
testLocationWithColon()
Tests creating a linked resource whose location contains a colon character. |
void |
testModificationStamp()
Tests the timestamp of a linked file when the local file is created or deleted. |
void |
testMoveFile()
|
void |
testMoveFolder()
|
void |
testMoveMissingFile()
Tests moving a linked file resource that doesn't exist in the file system |
void |
testMoveMissingFolder()
Tests moving a linked folder that doesn't exist in the file system |
void |
testMoveProjectWithLinks()
|
void |
testMoveProjectWithLinks2()
Tests bug 117402. |
void |
testNatureVeto()
|
void |
testNestedLink()
Tests creating a link within a link, and ensuring that both links still exist when the project is closed/opened (bug 177367). |
void |
testRefreshDeepLink()
Create a project with a linked resource at depth > 2, and refresh it. |
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 |
---|
public LinkedResourceTest()
public LinkedResourceTest(java.lang.String name)
Method Detail |
---|
public static junit.framework.Test suite()
public void testAllowMissingLocal()
public void testBlockedFolder()
public void testChangeLinkGender()
public void testCopyFile()
public void testCopyFolder()
public void testCopyMissingFile()
public void testCopyMissingFolder()
public void testCopyProjectWithLinks()
public void testCreateFolderInBackground() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void testCreateLinkCaseVariant()
public void testCreateLinkInDotProject()
public void testCreateProjectWithDeepLinks()
public void testCreateHiddenLinkedResources()
IFile.createLink(org.eclipse.core.runtime.IPath, int, org.eclipse.core.runtime.IProgressMonitor)
and IFolder.createLink(org.eclipse.core.runtime.IPath, int, org.eclipse.core.runtime.IProgressMonitor)
handle IResource.HIDDEN
flag properly.
public void testDeepMoveProjectWithLinks()
public void testDeleteLinkParent()
public void testDeleteProjectWithLinks()
public void testDeleteFolderWithLinks()
public void testFindFilesForLocationCaseVariant()
public void testIsLinked()
IResource.isLinked(int)
method.
public void testLinkedFileInLinkedFolder()
public void testLinkFile()
public void testLinkFolder()
public void testLocationWithColon()
public void testModificationStamp()
public void testMoveFile()
public void testMoveFolder()
public void testMoveMissingFile()
public void testMoveMissingFolder()
public void testMoveProjectWithLinks()
public void testMoveProjectWithLinks2()
public void testNatureVeto()
public void testNestedLink()
public void testRefreshDeepLink()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |