Changeset 36064 in osm for applications/editors/josm/plugins/opendata/modules/fr.toulouse/test/unit
- Timestamp:
- 2023-03-21T14:49:10+01:00 (2 years ago)
- Location:
- applications/editors/josm/plugins/opendata/modules/fr.toulouse/test/unit/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/modules/fr.toulouse/test/unit/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/ToulouseModuleTest.java
r35269 r36064 2 2 package org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse; 3 3 4 import static org.junit.Assert.assertEquals;5 import static org.junit.Assert.assertFalse;6 4 7 import org.junit.Rule; 8 import org.junit.Test; 9 import org.openstreetmap.josm.testutils.JOSMTestRules; 5 import static org.junit.jupiter.api.Assertions.assertEquals; 6 import static org.junit.jupiter.api.Assertions.assertFalse; 7 8 import org.junit.jupiter.api.Test; 9 import org.openstreetmap.josm.testutils.annotations.BasicPreferences; 10 10 11 11 /** 12 12 * Unit tests of {@link ToulouseModule} class. 13 13 */ 14 public class ToulouseModuleTest { 15 16 /** 17 * Setup test. 18 */ 19 @Rule 20 public JOSMTestRules rules = new JOSMTestRules().preferences(); 21 14 @BasicPreferences 15 class ToulouseModuleTest { 22 16 @Test 23 publicvoid testHandlersConstruction() {17 void testHandlersConstruction() { 24 18 ToulouseModule module = new ToulouseModule(null); 25 19 assertFalse(module.getHandlers().isEmpty()); -
applications/editors/josm/plugins/opendata/modules/fr.toulouse/test/unit/org/openstreetmap/josm/plugins/opendata/modules/fr/toulouse/ToulouseModuleTestIT.java
r35272 r36064 2 2 package org.openstreetmap.josm.plugins.opendata.modules.fr.toulouse; 3 3 4 import static org.junit.Assert.assertTrue; 4 5 import static org.junit.jupiter.api.Assertions.assertTrue; 5 6 6 7 import java.io.IOException; … … 8 9 import java.util.TreeMap; 9 10 10 import org.junit. Rule;11 import org.junit. Test;11 import org.junit.jupiter.api.Test; 12 import org.junit.jupiter.api.Timeout; 12 13 import org.openstreetmap.josm.plugins.opendata.core.datasets.AbstractDataSetHandler; 13 import org.openstreetmap.josm.testutils. JOSMTestRules;14 import org.openstreetmap.josm.testutils.annotations.BasicPreferences; 14 15 import org.openstreetmap.josm.tools.HttpClient; 15 16 … … 17 18 * Integration tests of {@link ToulouseModule} class. 18 19 */ 19 public class ToulouseModuleTestIT { 20 21 /** 22 * Setup test. 23 */ 24 @Rule 25 public JOSMTestRules rules = new JOSMTestRules().preferences().timeout(30_000); 26 20 @BasicPreferences 21 @Timeout(30) 22 class ToulouseModuleTestIT { 27 23 @Test 28 publicvoid testUrlValidity() throws IOException {24 void testUrlValidity() throws IOException { 29 25 Map<String, Integer> errors = new TreeMap<>(); 30 26 for (AbstractDataSetHandler handler : new ToulouseModule(null).getNewlyInstanciatedHandlers()) { … … 34 30 } 35 31 } 36 assertTrue(errors. toString(), errors.isEmpty());32 assertTrue(errors.isEmpty(), errors.toString()); 37 33 } 38 34 }
Note:
See TracChangeset
for help on using the changeset viewer.