edu.rice.cs.drjava.project
Class ProjectTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.rice.cs.drjava.DrJavaTestCase
              extended by edu.rice.cs.drjava.project.ProjectTest
All Implemented Interfaces:
Test

public class ProjectTest
extends DrJavaTestCase

Test class for project files


Nested Class Summary
 
Nested classes/interfaces inherited from class junit.framework.TestCase
TestCase.WrappedException
 
Field Summary
private  String absp
           
(package private)  File base
           
(package private)  File buildDir
           
(package private)  File parent
           
(package private)  File srcDir
           
 
Constructor Summary
ProjectTest()
           
 
Method Summary
private  DocumentInfoGetter makeGetter(int sel1, int sel2, int scrollv, int scrollh, String fname, String pack, boolean active, boolean isUntitled, File pf)
           
 void setUp()
          Set up for every test.
 void tearDown()
          Clean up for every test case.
 void testLegacyParseProject()
          Test to make sure all elements of the project are read correctly into the IR
 void testLegacyParseProjectPJT()
          Test to make sure all elements of the project are read correctly into the IR
 void testParseFile()
           
 void testParseProject()
          Test to make sure all elements of the project are read correctly into the IR
 void testParseProjectPJT()
          Test to make sure all elements of the project are read correctly into the IR
 void testWriteFile()
           
 void testWriteFilePJT()
           
 void testWriteFileXML()
           
 
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
 

Field Detail

base

File base

parent

File parent

buildDir

File buildDir

srcDir

File srcDir

absp

private String absp
Constructor Detail

ProjectTest

public ProjectTest()
Method Detail

setUp

public void setUp()
           throws Exception
Description copied from class: DrJavaTestCase
Set up for every test.

Overrides:
setUp in class DrJavaTestCase
Throws:
Exception - This convention is mandated by JUnit.TestCase, the superclass of this class.

tearDown

public void tearDown()
              throws Exception
Description copied from class: DrJavaTestCase
Clean up for every test case. Only used in unit tests. Added because Windows would intermittently throw a java.util.concurrent.RejectedExecutionException during cleanup.

Overrides:
tearDown in class DrJavaTestCase
Throws:
Exception

testLegacyParseProject

public void testLegacyParseProject()
                            throws IOException,
                                   MalformedProjectFileException,
                                   ParseException
Test to make sure all elements of the project are read correctly into the IR

Throws:
IOException
MalformedProjectFileException
ParseException

testParseProject

public void testParseProject()
                      throws IOException,
                             MalformedProjectFileException,
                             ParseException
Test to make sure all elements of the project are read correctly into the IR

Throws:
IOException
MalformedProjectFileException
ParseException

testParseFile

public void testParseFile()
                   throws SExpParseException
Throws:
SExpParseException

testWriteFile

public void testWriteFile()
                   throws IOException,
                          MalformedProjectFileException
Throws:
IOException
MalformedProjectFileException

testLegacyParseProjectPJT

public void testLegacyParseProjectPJT()
                               throws IOException,
                                      MalformedProjectFileException,
                                      ParseException
Test to make sure all elements of the project are read correctly into the IR

Throws:
IOException
MalformedProjectFileException
ParseException

testParseProjectPJT

public void testParseProjectPJT()
                         throws IOException,
                                MalformedProjectFileException,
                                ParseException
Test to make sure all elements of the project are read correctly into the IR

Throws:
IOException
MalformedProjectFileException
ParseException

testWriteFilePJT

public void testWriteFilePJT()
                      throws IOException,
                             MalformedProjectFileException
Throws:
IOException
MalformedProjectFileException

testWriteFileXML

public void testWriteFileXML()
                      throws IOException,
                             MalformedProjectFileException
Throws:
IOException
MalformedProjectFileException

makeGetter

private DocumentInfoGetter makeGetter(int sel1,
                                      int sel2,
                                      int scrollv,
                                      int scrollh,
                                      String fname,
                                      String pack,
                                      boolean active,
                                      boolean isUntitled,
                                      File pf)