From b22dba1a73ce29e900ccbc140b9e6a983b0b5b9e Mon Sep 17 00:00:00 2001 From: acolyer Date: Sat, 16 Aug 2003 19:33:15 +0000 Subject: [PATCH] Added a call to remove all structure model listeners from previous run to prevent structure listener leakage. --- ajde/testsrc/org/aspectj/ajde/AjdeTestCase.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ajde/testsrc/org/aspectj/ajde/AjdeTestCase.java b/ajde/testsrc/org/aspectj/ajde/AjdeTestCase.java index 7f3e2a481..3f4afbb9d 100644 --- a/ajde/testsrc/org/aspectj/ajde/AjdeTestCase.java +++ b/ajde/testsrc/org/aspectj/ajde/AjdeTestCase.java @@ -14,6 +14,9 @@ package org.aspectj.ajde; import java.io.*; + +import org.aspectj.asm.AsmManager; + import junit.framework.TestCase; public class AjdeTestCase extends TestCase { @@ -50,6 +53,9 @@ public class AjdeTestCase extends TestCase { protected void setUp(String testDataPath) throws Exception { currTestDataPath = TEST_DATA_PATH + File.separatorChar + testDataPath; + // AMC - added this next line as a temporary workaround for + // listener leakage in AsmManager induced by the Ajde test suite. + AsmManager.getDefault().removeAllListeners(); ideManager.init(currTestDataPath); super.setUp(); assertTrue(NullIdeManager.getIdeManager().isInitialized()); -- 2.39.5