]> source.dussan.org Git - aspectj.git/commitdiff
This test was failing, seemed to rely on "currentView"
authoracolyer <acolyer>
Tue, 25 Feb 2003 17:02:33 +0000 (17:02 +0000)
committeracolyer <acolyer>
Tue, 25 Feb 2003 17:02:33 +0000 (17:02 +0000)
which was set up by another testMethod

ajde/testsrc/org/aspectj/ajde/ui/StructureViewManagerTest.java

index 62cdad740a412f1d97aa4b986a618579eb42fb92..a5fcf71d1465909de9e2bd2b13ccb2ef3cf7b226 100644 (file)
@@ -82,12 +82,14 @@ public class StructureViewManagerTest extends AjdeTestCase {
                Ajde.getDefault().getStructureModelManager().readStructureModel(CONFIG_FILE_PATH);
                
                assertTrue("notified", renderer.getHasBeenNotified());  
-               //System.err.println(">>>>>> " + currentView.getRootNode().getStructureNode()); 
-               StructureNode n = currentView.getRootNode().getStructureNode();
+               //System.err.println(">>>>>> " + currentView.getRootNode().getStructureNode());
+               // AMC should this be currentView, or should we recreate the root... do the latter      
+               //StructureNode n = currentView.getRootNode().getStructureNode();
+               StructureNode n = Ajde.getDefault().getStructureModelManager().getStructureModel().getRoot();
                assertTrue(
                        "no structure", 
-                       currentView.getRootNode().getStructureNode().getChildren().get(0) 
-                       == StructureModel.NO_STRUCTURE
+                       //currentView.getRootNode().getStructureNode().getChildren().get(0) 
+                       == StructureModel.NO_STRUCTURE
                );      
        }