|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
edu.rice.cs.drjava.DrJavaTestCase
edu.rice.cs.util.FileOpsTest
public class FileOpsTest
Test cases for FileOps.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class junit.framework.TestCase |
|---|
junit.framework.TestCase.WrappedException |
| Field Summary | |
|---|---|
private static Log |
_log
|
static String |
PREFIX
|
static String |
SUFFIX
|
static String |
TEXT
|
| Constructor Summary | |
|---|---|
FileOpsTest()
|
|
| Method Summary | |
|---|---|
private String |
fixPathFormat(String s)
|
static void |
main(String[] args)
Main method called by testDeleteDirectoryOnExit. |
void |
testConvertToAbsolutePathEntries()
|
void |
testCreateTempDirectory()
|
void |
testDeleteDirectoryOnExit()
Tests that non-empty directories can be deleted on exit. |
void |
testGetFiles()
Tests getFilesInDir. |
void |
testGetShortFile()
Tests for getShortFile. |
void |
testMakeRelativeTo()
|
void |
testPackageExplore()
This tests that packageExplore correctly runs through and returns non-empty packages |
void |
testReadAndWriteTempFile()
|
void |
testRecursiveDirectoryDelete()
|
void |
testSaveFile()
This method checks that backups are made correctly, that when a save fails, no data is lost, and that when a save is attempted on a write-protected file, the save fails (bug #782963). |
void |
testSplitFile()
|
| Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase |
|---|
setConfigSetting, setDocText, setUp, tearDown |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, 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, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final Log _log
public static final String TEXT
public static final String PREFIX
public static final String SUFFIX
| Constructor Detail |
|---|
public FileOpsTest()
| Method Detail |
|---|
public void testCreateTempDirectory()
throws IOException
IOException
public void testReadAndWriteTempFile()
throws IOException
IOException
public void testRecursiveDirectoryDelete()
throws IOException
IOException
public void testSaveFile()
throws IOException
IOException
public void testPackageExplore()
throws IOException
IOException
public void testDeleteDirectoryOnExit()
throws IOException,
InterruptedException
IOException
InterruptedExceptionpublic void testSplitFile()
private String fixPathFormat(String s)
public void testMakeRelativeTo()
throws IOException,
SecurityException
IOException
SecurityExceptionpublic static void main(String[] args)
args - should contain the file name of the directory to delete on exitpublic void testConvertToAbsolutePathEntries()
public void testGetFiles()
throws IOException
IOException
public void testGetShortFile()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||