diff options
author | acolyer <acolyer> | 2003-02-25 17:02:33 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2003-02-25 17:02:33 +0000 |
commit | f7c21e356018647f96483da3177fcbf57b45c5b0 (patch) | |
tree | e9fb96f8dbd9d80fabf06d81e50acf2c87fc7ae4 /ajde/testsrc | |
parent | 32a7e80fac54b553e98e5049e9f9f5b8bb765a60 (diff) | |
download | aspectj-f7c21e356018647f96483da3177fcbf57b45c5b0.tar.gz aspectj-f7c21e356018647f96483da3177fcbf57b45c5b0.zip |
This test was failing, seemed to rely on "currentView"
which was set up by another testMethod
Diffstat (limited to 'ajde/testsrc')
-rw-r--r-- | ajde/testsrc/org/aspectj/ajde/ui/StructureViewManagerTest.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ajde/testsrc/org/aspectj/ajde/ui/StructureViewManagerTest.java b/ajde/testsrc/org/aspectj/ajde/ui/StructureViewManagerTest.java index 62cdad740..a5fcf71d1 100644 --- a/ajde/testsrc/org/aspectj/ajde/ui/StructureViewManagerTest.java +++ b/ajde/testsrc/org/aspectj/ajde/ui/StructureViewManagerTest.java @@ -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) + n == StructureModel.NO_STRUCTURE ); } |