org.eclipse.core.tests.resources
Class IResourceTest

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

public class IResourceTest
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
IResourceTest()
           
IResourceTest(java.lang.String name)
           
 
Method Summary
 void cleanUpAfterRefreshTest(java.lang.Object[] args)
           
static junit.framework.Test suite()
           
 void testAccept2()
          Performs black box testing of the following method: void accept(IResourceVisitor)
 void testAddLocalProject()
          This method tests the IResource.refreshLocal() operation
 void testConstants()
          Tests various resource constants.
 void testCopy()
          Performs black box testing of the following method: void copy(IPath, boolean, IProgressMonitor)
 void testDelete()
          Performs black box testing of the following method: void delete(boolean, IProgressMonitor)
 void testDerived()
          Performs black box testing of the following methods: isDerived() and setDerived(boolean)
 void testDerivedUsingAncestors()
          Test the isDerived() and isDerived(int) methods
 void testEquals()
          Performs black box testing of the following method: boolean equals(Object)
 void testExists()
          Performs black box testing of the following method: boolean exists()
 void testGetLocation()
          Performs black box testing of the following method: IPath getLocation()
 void testGetModificationStamp()
           
 void testGetRawLocation()
          Performs black box testing of the following method: IPath getRawLocation()
 void testIsSynchronized()
          This method tests the IResource.isSynchronized() operation
 void testMove()
          Performs black box testing of the following method: void move(IPath, boolean, IProgressMonitor)
 void testMultiCreation()
           
 void testProjectDescriptionFileModification()
          Test that opening an closing a project does not affect the description file.
 void testProperties()
          Tests IResource#getPersistentProperties and IResource#getSessionProperties
 void testReadOnly()
          Deprecated. This test is for deprecated API
 void testRefreshLocal()
          This method tests the IResource.refreshLocal() operation
 void testRefreshLocalWithDepth()
           
 void testRefreshWithMissingParent()
          This method tests the IResource.refreshLocal() operation
 void testRevertModificationStamp()
          This method tests the IResource.revertModificationStamp() operation
 void testSetLocalTimeStamp()
          This method tests the IResource.setLocalTimeStamp() operation
 void testTeamPrivateMember()
          Performs black box testing of the following methods: isTeamPrivateMember() and setTeamPrivateMember(boolean)
 
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

IResourceTest

public IResourceTest()

IResourceTest

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

suite

public static junit.framework.Test suite()

cleanUpAfterRefreshTest

public void cleanUpAfterRefreshTest(java.lang.Object[] args)

testAccept2

public void testAccept2()
Performs black box testing of the following method: void accept(IResourceVisitor)


testAddLocalProject

public void testAddLocalProject()
                         throws org.eclipse.core.runtime.CoreException
This method tests the IResource.refreshLocal() operation

Throws:
org.eclipse.core.runtime.CoreException

testConstants

public void testConstants()
Tests various resource constants.


testCopy

public void testCopy()
Performs black box testing of the following method: void copy(IPath, boolean, IProgressMonitor)


testDelete

public void testDelete()
Performs black box testing of the following method: void delete(boolean, IProgressMonitor)


testDerived

public void testDerived()
Performs black box testing of the following methods: isDerived() and setDerived(boolean)


testDerivedUsingAncestors

public void testDerivedUsingAncestors()
Test the isDerived() and isDerived(int) methods


testEquals

public void testEquals()
Performs black box testing of the following method: boolean equals(Object)


testExists

public void testExists()
Performs black box testing of the following method: boolean exists()


testGetLocation

public void testGetLocation()
Performs black box testing of the following method: IPath getLocation()


testGetModificationStamp

public void testGetModificationStamp()

testGetRawLocation

public void testGetRawLocation()
Performs black box testing of the following method: IPath getRawLocation()


testIsSynchronized

public void testIsSynchronized()
This method tests the IResource.isSynchronized() operation


testMove

public void testMove()
Performs black box testing of the following method: void move(IPath, boolean, IProgressMonitor)


testMultiCreation

public void testMultiCreation()

testProjectDescriptionFileModification

public void testProjectDescriptionFileModification()
                                            throws org.eclipse.core.runtime.CoreException
Test that opening an closing a project does not affect the description file.

Throws:
org.eclipse.core.runtime.CoreException

testProperties

public void testProperties()
                    throws org.eclipse.core.runtime.CoreException
Tests IResource#getPersistentProperties and IResource#getSessionProperties

Throws:
org.eclipse.core.runtime.CoreException

testReadOnly

public void testReadOnly()
Deprecated. This test is for deprecated API

Tests IResource.isReadOnly and setReadOnly


testRefreshLocal

public void testRefreshLocal()
This method tests the IResource.refreshLocal() operation


testRefreshLocalWithDepth

public void testRefreshLocalWithDepth()

testRefreshWithMissingParent

public void testRefreshWithMissingParent()
                                  throws org.eclipse.core.runtime.CoreException
This method tests the IResource.refreshLocal() operation

Throws:
org.eclipse.core.runtime.CoreException

testRevertModificationStamp

public void testRevertModificationStamp()
This method tests the IResource.revertModificationStamp() operation


testSetLocalTimeStamp

public void testSetLocalTimeStamp()
This method tests the IResource.setLocalTimeStamp() operation


testTeamPrivateMember

public void testTeamPrivateMember()
Performs black box testing of the following methods: isTeamPrivateMember() and setTeamPrivateMember(boolean)