Skip to content

Commit

Permalink
Tests: give SwingMemoryLeakTest its own shutter configuration block
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosame committed Jun 26, 2024
1 parent 794baee commit f583008
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/**
Expand All @@ -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");
Expand Down

0 comments on commit f583008

Please sign in to comment.