org.eclipse.core.tests.resources
Class IProjectTest

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

public class IProjectTest
extends ResourceTest


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
IProjectTest()
           
IProjectTest(java.lang.String name)
           
 
Method Summary
 void ensureExistsInWorkspace(IProject project, IProjectDescription description)
           
 void setGetPersistentProperty(IResource target)
           
static junit.framework.Test suite()
           
 void testCopy()
          Note that project copying is tested more thoroughly by IResourceTest#testCopy.
 void testCreateHiddenProject()
           
 void testGetNature()
          Tests the API method IProject#getNature
 void testHasNature()
          Tests the API method IProject#hasNature.
 void testInvalidProjectNames()
          Tests creation and manipulation of projects names that are reserved on some platforms.
 void testIsNatureEnabled()
          Tests the API method IProject#isNatureEnabled.
 void testPathVariableLocation()
          Tests creation of a project whose location is specified by a path variable.
 void testProjectCloseOpen()
           
 void testProjectCopyVariations()
           
 void testProjectCreateOpenCloseDelete()
           
 void testProjectCreation()
           
 void testProjectCreationInvalidLocation()
          Tests creating a project whose location is invalid
 void testProjectCreationLocationExistsWithDifferentCase()
          Tests creating a project whose location already exists with different case
 void testProjectDeletionClosedDefaultInSync()
          Tests for IProject.delete where: - project is CLOSED - content area is the DEFAULT - resources are IN_SYNC with the file system
 void testProjectDeletionClosedDefaultOutOfSync()
          Tests for IProject.delete where: - project is CLOSED - content area is the DEFAULT - resources are OUT_OF_SYNC with the file system
 void testProjectDeletionClosedUserDefinedInSync()
          Tests for IProject.delete where: - project is CLOSED - content area is USER-DEFINED - resources are IN_SYNC with the file system
 void testProjectDeletionClosedUserDefinedOutOfSync()
          Tests for IProject.delete where: - project is CLOSED - content area is USER-DEFINED - resources are OUT_OF_SYNC with the file system
 void testProjectDeletionOpenDefaultInSync()
          Tests for IProject.delete where: - project is OPEN - content area is the DEFAULT - resources are IN_SYNC with the file system
 void testProjectDeletionOpenDefaultOutOfSync()
          Tests for IProject.delete where: - project is OPEN - content area is the DEFAULT - resources are OUT_OF_SYNC with the file system
 void testProjectDeletionOpenUserDefinedInSync()
          Tests for IProject.delete where: - project is OPEN - content area is USER-DEFINED - resources are IN_SYNC with the file system
 void testProjectDeletionOpenUserDefinedOutOfSync()
          Tests for IProject.delete where: - project is OPEN - content area is USER-DEFINED - resources are OUT_OF_SYNC with the file system
 void testProjectDescriptionDynamic()
          Tests API on IProjectDescription
 void testProjectDescriptionReferences()
          Tests API on IProjectDescription
 void testProjectLocationValidation()
           
 void testProjectLocationWithEscapes()
          Tests creating a project at a location that contains URL escape sequences or spaces.
 void testProjectMoveContent()
           
 void testProjectMoveVariations()
           
 void testRenameExternalProject()
          Tests renaming a project using the move(IProjectDescription) API where the project contents are stored outside the workspace location.
 void testReplaceLocation()
          Tests IResource.move(IProjectDescription, int, IProgressMonitor) in conjunction with IResource.REPLACE.
 void testSetGetProjectPersistentProperty()
           
 void testWorkspaceNotificationClose()
           
 void testWorkspaceNotificationDelete()
           
 void testWorkspaceNotificationMove()
           
 
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, defineHierarchy, 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

IProjectTest

public IProjectTest()

IProjectTest

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

suite

public static junit.framework.Test suite()

ensureExistsInWorkspace

public void ensureExistsInWorkspace(IProject project,
                                    IProjectDescription description)

setGetPersistentProperty

public void setGetPersistentProperty(IResource target)
                              throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException

testCopy

public void testCopy()
Note that project copying is tested more thoroughly by IResourceTest#testCopy.


testGetNature

public void testGetNature()
Tests the API method IProject#getNature


testHasNature

public void testHasNature()
Tests the API method IProject#hasNature.


testInvalidProjectNames

public void testInvalidProjectNames()
Tests creation and manipulation of projects names that are reserved on some platforms.


testIsNatureEnabled

public void testIsNatureEnabled()
Tests the API method IProject#isNatureEnabled.


testPathVariableLocation

public void testPathVariableLocation()
Tests creation of a project whose location is specified by a path variable. See bug 56274.


testProjectCloseOpen

public void testProjectCloseOpen()

testProjectCopyVariations

public void testProjectCopyVariations()

testProjectCreateOpenCloseDelete

public void testProjectCreateOpenCloseDelete()

testProjectCreation

public void testProjectCreation()

testProjectCreationInvalidLocation

public void testProjectCreationInvalidLocation()
Tests creating a project whose location is invalid


testProjectCreationLocationExistsWithDifferentCase

public void testProjectCreationLocationExistsWithDifferentCase()
Tests creating a project whose location already exists with different case


testProjectDeletionClosedDefaultInSync

public void testProjectDeletionClosedDefaultInSync()
Tests for IProject.delete where: - project is CLOSED - content area is the DEFAULT - resources are IN_SYNC with the file system


testProjectDeletionClosedDefaultOutOfSync

public void testProjectDeletionClosedDefaultOutOfSync()
Tests for IProject.delete where: - project is CLOSED - content area is the DEFAULT - resources are OUT_OF_SYNC with the file system


testProjectDeletionClosedUserDefinedInSync

public void testProjectDeletionClosedUserDefinedInSync()
Tests for IProject.delete where: - project is CLOSED - content area is USER-DEFINED - resources are IN_SYNC with the file system


testProjectDeletionClosedUserDefinedOutOfSync

public void testProjectDeletionClosedUserDefinedOutOfSync()
Tests for IProject.delete where: - project is CLOSED - content area is USER-DEFINED - resources are OUT_OF_SYNC with the file system


testProjectDeletionOpenDefaultInSync

public void testProjectDeletionOpenDefaultInSync()
Tests for IProject.delete where: - project is OPEN - content area is the DEFAULT - resources are IN_SYNC with the file system


testProjectDeletionOpenDefaultOutOfSync

public void testProjectDeletionOpenDefaultOutOfSync()
Tests for IProject.delete where: - project is OPEN - content area is the DEFAULT - resources are OUT_OF_SYNC with the file system


testProjectDeletionOpenUserDefinedInSync

public void testProjectDeletionOpenUserDefinedInSync()
Tests for IProject.delete where: - project is OPEN - content area is USER-DEFINED - resources are IN_SYNC with the file system


testProjectDeletionOpenUserDefinedOutOfSync

public void testProjectDeletionOpenUserDefinedOutOfSync()
Tests for IProject.delete where: - project is OPEN - content area is USER-DEFINED - resources are OUT_OF_SYNC with the file system


testProjectDescriptionDynamic

public void testProjectDescriptionDynamic()
Tests API on IProjectDescription


testProjectDescriptionReferences

public void testProjectDescriptionReferences()
Tests API on IProjectDescription


testProjectLocationValidation

public void testProjectLocationValidation()

testProjectLocationWithEscapes

public void testProjectLocationWithEscapes()
Tests creating a project at a location that contains URL escape sequences or spaces.


testProjectMoveContent

public void testProjectMoveContent()

testProjectMoveVariations

public void testProjectMoveVariations()

testRenameExternalProject

public void testRenameExternalProject()
Tests renaming a project using the move(IProjectDescription) API where the project contents are stored outside the workspace location.


testReplaceLocation

public void testReplaceLocation()
Tests IResource.move(IProjectDescription, int, IProgressMonitor) in conjunction with IResource.REPLACE.


testSetGetProjectPersistentProperty

public void testSetGetProjectPersistentProperty()

testWorkspaceNotificationClose

public void testWorkspaceNotificationClose()

testWorkspaceNotificationDelete

public void testWorkspaceNotificationDelete()

testWorkspaceNotificationMove

public void testWorkspaceNotificationMove()

testCreateHiddenProject

public void testCreateHiddenProject()