edu.rice.cs.util.docnavigation
Class JTreeSortNavigatorTest

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.util.docnavigation.JTreeSortNavigatorTest
All Implemented Interfaces:
junit.framework.Test

public class JTreeSortNavigatorTest
extends DrJavaTestCase


Nested Class Summary
 
Nested classes/interfaces inherited from class junit.framework.TestCase
junit.framework.TestCase.WrappedException
 
Field Summary
protected  DefaultMutableTreeNode aux
           
protected  DefaultMutableTreeNode auxFolder1
           
protected  DefaultMutableTreeNode auxFolder2
           
protected  DummyINavigatorItem auxi1
           
protected  DummyINavigatorItem auxi2
           
protected  DummyINavigatorItem auxi3
           
protected  DummyINavigatorItem auxi4
           
protected  DummyINavigatorItem auxi5
           
protected  String EXTERNAL_BIN_NAME
           
protected  DefaultMutableTreeNode folder1
           
protected  DefaultMutableTreeNode folder2
           
protected  DummyINavigatorItem i1
           
protected  DummyINavigatorItem i2
           
protected  DummyINavigatorItem i3
           
protected  DummyINavigatorItem i4
           
protected  String projName
           
protected  DefaultMutableTreeNode root
           
protected  DefaultMutableTreeNode source
           
protected  String SOURCE_BIN_NAME
           
protected  JTreeSortNavigator<DummyINavigatorItem> tree
           
 
Constructor Summary
JTreeSortNavigatorTest()
           
 
Method Summary
 void setUp()
          Set up for every test.
 void testCollapsedPaths()
           
 void testGeneratePathString()
           
 void testGetDocumentsInBin()
          Test the enumeration of items based on top-level bins.
 void testGetNamesOfSelectedTopLevelGroup()
          Test of getting the list of selected items.
 void testGetSelectedDocuments()
          Test of getting the list of selected items.
 void testRenameDocument()
          When the node is the only child of its parent and it is refreshed it should not try to delete the parent.
 void testTraversalOps()
           
 
Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase
setConfigSetting, setDocText, 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

tree

protected JTreeSortNavigator<DummyINavigatorItem> tree

root

protected DefaultMutableTreeNode root

source

protected DefaultMutableTreeNode source

folder1

protected DefaultMutableTreeNode folder1

folder2

protected DefaultMutableTreeNode folder2

projName

protected String projName

i1

protected DummyINavigatorItem i1

i2

protected DummyINavigatorItem i2

i3

protected DummyINavigatorItem i3

i4

protected DummyINavigatorItem i4

aux

protected DefaultMutableTreeNode aux

auxFolder1

protected DefaultMutableTreeNode auxFolder1

auxFolder2

protected DefaultMutableTreeNode auxFolder2

auxi1

protected DummyINavigatorItem auxi1

auxi2

protected DummyINavigatorItem auxi2

auxi3

protected DummyINavigatorItem auxi3

auxi4

protected DummyINavigatorItem auxi4

auxi5

protected DummyINavigatorItem auxi5

SOURCE_BIN_NAME

protected final String SOURCE_BIN_NAME
See Also:
Constant Field Values

EXTERNAL_BIN_NAME

protected final String EXTERNAL_BIN_NAME
See Also:
Constant Field Values
Constructor Detail

JTreeSortNavigatorTest

public JTreeSortNavigatorTest()
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.

testTraversalOps

public void testTraversalOps()

testGeneratePathString

public void testGeneratePathString()

testCollapsedPaths

public void testCollapsedPaths()

testRenameDocument

public void testRenameDocument()
When the node is the only child of its parent and it is refreshed it should not try to delete the parent.


testGetDocumentsInBin

public void testGetDocumentsInBin()
Test the enumeration of items based on top-level bins.


testGetSelectedDocuments

public void testGetSelectedDocuments()
Test of getting the list of selected items.


testGetNamesOfSelectedTopLevelGroup

public void testGetNamesOfSelectedTopLevelGroup()
Test of getting the list of selected items.