Changeset 32351 in osm for applications/editors/josm/plugins/opendata/test
- Timestamp:
- 2016-06-21T00:47:41+02:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/archive/ZipReaderTest.java
r30573 r32351 13 13 import javax.xml.stream.XMLStreamException; 14 14 15 import org.junit. BeforeClass;15 import org.junit.Rule; 16 16 import org.junit.Test; 17 import org.openstreetmap.josm.JOSMFixture;18 17 import org.openstreetmap.josm.Main; 19 18 import org.openstreetmap.josm.data.osm.DataSet; 20 19 import org.openstreetmap.josm.plugins.opendata.core.io.NonRegFunctionalTests; 20 import org.openstreetmap.josm.testutils.JOSMTestRules; 21 21 22 22 /** … … 28 28 * Setup test. 29 29 */ 30 @BeforeClass 31 public static void setUp() { 32 JOSMFixture.createUnitTestFixture().init(); 33 } 30 @Rule 31 public JOSMTestRules rules = new JOSMTestRules(); 34 32 35 33 /** -
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/KmlReaderTest.java
r32130 r32351 11 11 import javax.xml.stream.XMLStreamException; 12 12 13 import org.junit. BeforeClass;13 import org.junit.Rule; 14 14 import org.junit.Test; 15 import org.openstreetmap.josm.JOSMFixture;16 15 import org.openstreetmap.josm.TestUtils; 17 16 import org.openstreetmap.josm.plugins.opendata.core.io.NonRegFunctionalTests; 17 import org.openstreetmap.josm.testutils.JOSMTestRules; 18 18 19 19 /** … … 25 25 * Setup test. 26 26 */ 27 @BeforeClass 28 public static void setUp() { 29 JOSMFixture.createUnitTestFixture().init(); 30 } 27 @Rule 28 public JOSMTestRules rules = new JOSMTestRules(); 31 29 32 30 /** -
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/MifReaderTest.java
r30583 r32351 7 7 import java.io.InputStream; 8 8 9 import org.junit. BeforeClass;9 import org.junit.Rule; 10 10 import org.junit.Test; 11 import org.openstreetmap.josm.JOSMFixture;12 11 import org.openstreetmap.josm.TestUtils; 13 12 import org.openstreetmap.josm.data.osm.DataSet; … … 15 14 import org.openstreetmap.josm.plugins.opendata.core.datasets.AbstractDataSetHandler; 16 15 import org.openstreetmap.josm.plugins.opendata.core.io.NonRegFunctionalTests; 16 import org.openstreetmap.josm.testutils.JOSMTestRules; 17 17 18 18 /** … … 24 24 * Setup test. 25 25 */ 26 @BeforeClass 27 public static void setUp() { 28 JOSMFixture.createUnitTestFixture().init(); 29 } 26 @Rule 27 public JOSMTestRules rules = new JOSMTestRules(); 30 28 31 29 private static AbstractDataSetHandler newHandler(final String epsgCode) { -
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/ShpReaderTest.java
r32139 r32351 12 12 import javax.xml.stream.XMLStreamException; 13 13 14 import org.junit. BeforeClass;14 import org.junit.Rule; 15 15 import org.junit.Test; 16 import org.openstreetmap.josm.JOSMFixture;17 16 import org.openstreetmap.josm.TestUtils; 18 17 import org.openstreetmap.josm.data.osm.Node; 19 18 import org.openstreetmap.josm.plugins.opendata.core.io.NonRegFunctionalTests; 19 import org.openstreetmap.josm.testutils.JOSMTestRules; 20 20 21 21 /** … … 27 27 * Setup test. 28 28 */ 29 @BeforeClass 30 public static void setUp() { 31 JOSMFixture.createUnitTestFixture().init(); 32 } 29 @Rule 30 public JOSMTestRules rules = new JOSMTestRules(); 33 31 34 32 /** -
applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/tabular/CsvReaderTest.java
r31990 r32351 2 2 package org.openstreetmap.josm.plugins.opendata.core.io.tabular; 3 3 4 import java.io.File;5 import java.io.FileInputStream;6 4 import java.io.IOException; 7 5 import java.io.InputStream; … … 10 8 import javax.xml.stream.XMLStreamException; 11 9 12 import org.junit. BeforeClass;10 import org.junit.Rule; 13 11 import org.junit.Test; 14 import org.openstreetmap.josm.JOSMFixture;15 12 import org.openstreetmap.josm.TestUtils; 16 13 import org.openstreetmap.josm.data.coor.EastNorth; … … 20 17 import org.openstreetmap.josm.plugins.opendata.core.datasets.AbstractDataSetHandler; 21 18 import org.openstreetmap.josm.plugins.opendata.core.io.NonRegFunctionalTests; 19 import org.openstreetmap.josm.testutils.JOSMTestRules; 22 20 23 21 /** … … 29 27 * Setup test. 30 28 */ 31 @BeforeClass 32 public static void setUp() { 33 JOSMFixture.createUnitTestFixture().init(); 34 } 29 @Rule 30 public JOSMTestRules rules = new JOSMTestRules(); 35 31 36 32 private static AbstractDataSetHandler newHandler(final String epsgCode) {
Note:
See TracChangeset
for help on using the changeset viewer.