|
||||||||||
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.IFileTest
public class IFileTest
Field Summary | |
---|---|
static java.lang.String |
DOES_NOT_EXIST
|
static java.lang.String |
EXISTING
|
static java.lang.String |
LOCAL_ONLY
|
static java.lang.String |
OUT_OF_SYNC
|
static java.lang.String |
WORKSPACE_ONLY
|
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 | |
---|---|
IFileTest()
|
|
IFileTest(java.lang.String name)
|
Method Summary | |
---|---|
boolean |
existsAndOpen(IContainer container)
Returns true if the given container exists, and is open if applicable. |
void |
generateInterestingFiles(IContainer container)
Creates some interesting files in the specified container. |
IFile[] |
interestingFiles()
Returns some interesting files. |
IProject[] |
interestingProjects()
Creates and returns some interesting projects |
java.io.InputStream[] |
interestingStreams()
Returns some interesting input streams |
boolean |
outOfSync(IFile file)
Returns true if the given file is out of sync from the local file system. |
void |
refreshFile(IFile file)
Makes sure file requirements are met (out of sync, workspace only, etc). |
void |
refreshFiles()
Makes sure file requirements are met (out of sync, workspace only, etc). |
static junit.framework.Test |
suite()
Sets up the test suite for this class |
void |
testAppendContents()
|
void |
testAppendContents2()
|
void |
testCreate()
Performs black box testing of the following method: void create(InputStream, boolean, IProgressMonitor) |
void |
testCreateDerived()
|
void |
testCreateDerivedTeamPrivate()
|
void |
testCreateTeamPrivate()
|
void |
testFileCreation()
|
void |
testFileDeletion()
|
void |
testFileEmptyDeletion()
|
void |
testFileInFolderCreation()
|
void |
testFileInFolderCreation1()
|
void |
testFileInFolderCreation2()
|
void |
testFileMove()
|
void |
testFileOverFolder()
|
void |
testGetContents()
Performs black box testing of the following method: InputStream getContents() |
void |
testGetContents2()
|
void |
testInvalidFileNames()
Tests creation and manipulation of file names that are reserved on some platforms. |
void |
testSetContents1()
Performs black box testing of the following method: void setContents(InputStream, boolean, IProgressMonitor) |
void |
testSetContents2()
|
void |
testSetGetFolderPersistentProperty()
|
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 |
Field Detail |
---|
public static final java.lang.String DOES_NOT_EXIST
public static final java.lang.String EXISTING
public static final java.lang.String LOCAL_ONLY
public static final java.lang.String OUT_OF_SYNC
public static final java.lang.String WORKSPACE_ONLY
Constructor Detail |
---|
public IFileTest()
public IFileTest(java.lang.String name)
Method Detail |
---|
public static junit.framework.Test suite()
public boolean existsAndOpen(IContainer container)
public void generateInterestingFiles(IContainer container)
public IFile[] interestingFiles()
public IProject[] interestingProjects() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public java.io.InputStream[] interestingStreams()
public boolean outOfSync(IFile file)
public void refreshFile(IFile file)
public void refreshFiles()
public void testAppendContents()
public void testAppendContents2()
public void testCreate()
public void testCreateDerived()
public void testCreateDerivedTeamPrivate()
public void testCreateTeamPrivate()
public void testFileCreation()
public void testFileDeletion() throws java.lang.Throwable
java.lang.Throwable
public void testFileEmptyDeletion() throws java.lang.Throwable
java.lang.Throwable
public void testFileInFolderCreation()
public void testFileInFolderCreation1() throws java.lang.Throwable
java.lang.Throwable
public void testFileInFolderCreation2()
public void testFileMove() throws java.lang.Throwable
java.lang.Throwable
public void testFileOverFolder() throws java.lang.Throwable
java.lang.Throwable
public void testGetContents()
public void testGetContents2() throws java.io.IOException
java.io.IOException
public void testInvalidFileNames()
public void testSetContents1()
public void testSetContents2()
public void testSetGetFolderPersistentProperty() throws java.lang.Throwable
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |