edu.rice.cs.drjava.ui
Class ProjectMenuTest

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.ui.ProjectMenuTest
All Implemented Interfaces:
Test

public final class ProjectMenuTest
extends DrJavaTestCase

Test functions of Project Facility working through the main frame and model.


Nested Class Summary
 
Nested classes/interfaces inherited from class junit.framework.TestCase
TestCase.WrappedException
 
Field Summary
private  File _auxFile
           
private  File _base
          Temporary files
private  File _file1
           
private  File _file2
           
private  MainFrame _frame
           
private  SingleDisplayModel _model
           
private  File _parent
           
private  File _projFile
           
private  String _projFileText
           
private  File _srcDir
           
(package private)  BufferedReader reader
           
 
Constructor Summary
ProjectMenuTest()
           
 
Method Summary
 void setUp()
          Setup method for each JUnit test case in this Test class.
private  void superSetUp()
          Invokes setUp() in MultiThreadedTestCase.
 void tearDown()
          Clean up for every test case.
 void testCloseAllClosesProject()
           
 void testSaveProject()
           
 void testSetBuildDirectory()
           
 
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

_frame

private volatile MainFrame _frame

_model

private volatile SingleDisplayModel _model

_base

private volatile File _base
Temporary files


_parent

private volatile File _parent

_srcDir

private volatile File _srcDir

_auxFile

private volatile File _auxFile

_projFile

private volatile File _projFile

_file1

private volatile File _file1

_file2

private volatile File _file2

reader

volatile BufferedReader reader

_projFileText

private volatile String _projFileText
Constructor Detail

ProjectMenuTest

public ProjectMenuTest()
Method Detail

superSetUp

private void superSetUp()
                 throws Exception
Invokes setUp() in MultiThreadedTestCase. Accessible from anonymous inner classes.

Throws:
Exception

setUp

public void setUp()
           throws Exception
Setup method for each JUnit test case in this Test class.

Overrides:
setUp in class DrJavaTestCase
Throws:
Exception - This convention is mandated by the JUnit TestClass which is an ancestor 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

testSetBuildDirectory

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

testCloseAllClosesProject

public void testCloseAllClosesProject()

testSaveProject

public void testSaveProject()