|
||||||||||
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.drjava.CommandLineTest
public final class CommandLineTest
Tests opening/creating files specified as command line arguments.
Field Summary |
---|
Fields inherited from class edu.rice.cs.drjava.DrJavaTestCase |
---|
TEST_DRJAVA_CONFIG_PROPERTY |
Constructor Summary | |
---|---|
CommandLineTest(String name)
Constructor. |
Method Summary | |
---|---|
void |
setUp()
Set up for every test. |
void |
tearDown()
Clean up for every test case. |
void |
testDotPaths()
Tests paths with "." and ".." in them. |
void |
testDups()
Test duplicate files. |
void |
testMixed()
Supplying both valid and invalid filenames on the command line. |
void |
testNE()
A nonexistent file. |
void |
testNone()
Tests DrJava with no command line arguments. |
void |
testOpenMany()
Many files on the command line. |
void |
testOpenOne()
Open one file on the command line. |
void |
testRelativePath()
A regression test for bug #542747, which related to opening a file via the command line using a relative path. |
Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase |
---|
setConfigSetting, setDocText |
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 |
Constructor Detail |
---|
public CommandLineTest(String name)
name
- the name of the test caseMethod Detail |
---|
public void setUp() throws Exception
DrJavaTestCase
setUp
in class DrJavaTestCase
Exception
- This convention is mandated by JUnit.TestCase, the superclass of this class.public void tearDown() throws Exception
DrJavaTestCase
tearDown
in class DrJavaTestCase
Exception
public void testNone()
public void testOpenOne() throws BadLocationException
BadLocationException
public void testNE()
public void testOpenMany() throws BadLocationException
BadLocationException
public void testMixed() throws BadLocationException
BadLocationException
public void testDups() throws BadLocationException
BadLocationException
public void testRelativePath() throws IOException, InvalidPackageException
IOException
InvalidPackageException
public void testDotPaths()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |