diff --git a/echosvg-test/src/test/java/io/sf/carte/echosvg/swing/test/SwingMemoryLeakTest.java b/echosvg-test/src/test/java/io/sf/carte/echosvg/swing/test/SwingMemoryLeakTest.java index 6085ac796..bd2f4431b 100644 --- a/echosvg-test/src/test/java/io/sf/carte/echosvg/swing/test/SwingMemoryLeakTest.java +++ b/echosvg-test/src/test/java/io/sf/carte/echosvg/swing/test/SwingMemoryLeakTest.java @@ -21,9 +21,12 @@ import java.net.MalformedURLException; import java.net.URL; +import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; +import io.sf.carte.echosvg.script.rhino.RhinoClassShutter; import io.sf.carte.echosvg.test.svg.AbstractRenderingAccuracyTest; /** @@ -32,8 +35,16 @@ * @author see Git history. * @version $Id$ */ +@Tag("perf") public class SwingMemoryLeakTest { + @BeforeAll + public static void setUpBeforeAll() { + RhinoClassShutter.addToWhitelist("java.lang.System"); + RhinoClassShutter.addToWhitelist("org.gradle.*"); + RhinoClassShutter.addToWhitelist("io.sf.carte.echosvg.swing.test.*"); + } + @Test public void test() throws Exception { new JSVGMemoryLeakTest().runTest("samples/anne.svg");