diff --git a/test/performance/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRendererPerformanceTestParent.java b/test/performance/org/openstreetmap/josm/data/osm/visitor/paint/AbstractMapRendererPerformanceTestParent.java
index 569c6a0..63b5f74 100644
|
a
|
b
|
public abstract class AbstractMapRendererPerformanceTestParent {
|
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | 73 | |
| | 74 | protected static void clean() throws Exception { |
| | 75 | g = null; |
| | 76 | img = null; |
| | 77 | nc = null; |
| | 78 | dsRestriction = null; |
| | 79 | dsMultipolygon = null; |
| | 80 | dsCity = null; |
| | 81 | } |
| | 82 | |
| 74 | 83 | protected abstract Rendering buildRenderer(); |
| 75 | 84 | |
| 76 | 85 | protected final void test(int iterations, DataSet ds, Bounds bounds) throws Exception { |
diff --git a/test/performance/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRendererPerformanceTest.java b/test/performance/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRendererPerformanceTest.java
index 018bfd0..cf7940d 100644
|
a
|
b
|
import java.io.IOException;
|
| 6 | 6 | |
| 7 | 7 | import javax.imageio.ImageIO; |
| 8 | 8 | |
| | 9 | import org.junit.AfterClass; |
| 9 | 10 | import org.junit.BeforeClass; |
| 10 | 11 | import org.openstreetmap.josm.gui.mappaint.MapPaintStyles; |
| 11 | 12 | |
| … |
… |
public class StyledMapRendererPerformanceTest extends AbstractMapRendererPerform
|
| 23 | 24 | MapPaintStyles.readFromPreferences(); |
| 24 | 25 | } |
| 25 | 26 | |
| | 27 | @AfterClass |
| | 28 | public static void clean() throws Exception { |
| | 29 | AbstractMapRendererPerformanceTestParent.clean(); |
| | 30 | } |
| | 31 | |
| 26 | 32 | @Override |
| 27 | 33 | protected Rendering buildRenderer() { |
| 28 | 34 | return new StyledMapRenderer(g, nc, false); |
diff --git a/test/performance/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRendererPerformanceTest.java b/test/performance/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRendererPerformanceTest.java
index 75f74d3..7549d9e 100644
|
a
|
b
|
|
| 1 | 1 | // License: GPL. For details, see LICENSE file. |
| 2 | 2 | package org.openstreetmap.josm.data.osm.visitor.paint; |
| 3 | 3 | |
| | 4 | import org.junit.AfterClass; |
| 4 | 5 | import org.junit.BeforeClass; |
| 5 | 6 | |
| 6 | 7 | /** |
| … |
… |
public class WireframeMapRendererPerformanceTest extends AbstractMapRendererPerf
|
| 13 | 14 | AbstractMapRendererPerformanceTestParent.load(); |
| 14 | 15 | } |
| 15 | 16 | |
| | 17 | @AfterClass |
| | 18 | public static void clean() throws Exception { |
| | 19 | AbstractMapRendererPerformanceTestParent.clean(); |
| | 20 | } |
| | 21 | |
| 16 | 22 | @Override |
| 17 | 23 | protected Rendering buildRenderer() { |
| 18 | 24 | return new WireframeMapRenderer(g, nc, false); |