| edu.rice.cs.drjava.DrJavaTestCase edu.rice.cs.drjava.CommandLineTest
CommandLineTest | final public class CommandLineTest extends DrJavaTestCase (Code) | | Tests opening/creating files specified as command line arguments.
version: $Id: CommandLineTest.java 4260 2007-10-10 20:28:34Z mgricken $ |
Method Summary | |
public void | setUp() | public void | tearDown() | public void | testDotPaths() Tests paths with "." and ".." in them. | public void | testDups() Test duplicate files. | public void | testMixed() Supplying both valid and invalid filenames on the command line. | public void | testNE() A nonexistent file. | public void | testNone() Tests DrJava with no command line arguments. | public void | testOpenMany() Many files on the command line. | public void | testOpenOne() Open one file on the command line. | public void | testRelativePath() A regression test for bug #542747, which related to opening a file via the command line using a relative path.
The problem was that getSourceRoot() would fail on the document, because the filename was not absolute. |
CommandLineTest | public CommandLineTest(String name)(Code) | | Constructor. Sets up test files for us to use: (i) three files that exist and can be opened; (ii) three
files that don't exist
Parameters: name - the name of the test case |
testDotPaths | public void testDotPaths()(Code) | | Tests paths with "." and ".." in them. Windows will blow up if you use one in a JFileChooser without
converting it to a canonical filename.
|
testMixed | public void testMixed() throws BadLocationException(Code) | | Supplying both valid and invalid filenames on the command line. Should open only the valid ones.
|
testNE | public void testNE()(Code) | | A nonexistent file. Should open a new, untitled document.
|
testNone | public void testNone()(Code) | | Tests DrJava with no command line arguments. Should open a new, untitled document.
|
testOpenMany | public void testOpenMany() throws BadLocationException(Code) | | Many files on the command line. Should open all of them, displaying the last one.
|
testOpenOne | public void testOpenOne() throws BadLocationException(Code) | | Open one file on the command line. Should (obviously) open that file.
|
testRelativePath | public void testRelativePath() throws IOException, InvalidPackageException(Code) | | A regression test for bug #542747, which related to opening a file via the command line using a relative path.
The problem was that getSourceRoot() would fail on the document, because the filename was not absolute. (The
fix will be to absolutize file paths when opening files.)
|
Fields inherited from edu.rice.cs.drjava.DrJavaTestCase | final public static String TEST_DRJAVA_CONFIG_PROPERTY(Code)(Java Doc)
|
|
|