Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelperTest.java
- Timestamp:
- 2020-10-28T20:41:00+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/layer/gpx/GpxDrawHelperTest.java
r16160 r17275 2 2 package org.openstreetmap.josm.gui.layer.gpx; 3 3 4 import static org.junit. Assert.assertEquals;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 5 6 6 import java.io.FileNotFoundException; … … 12 12 import java.util.stream.Collectors; 13 13 14 import org.junit. Rule;15 import org.junit.Test; 14 import org.junit.jupiter.api.extension.RegisterExtension; 15 import org.junit.jupiter.api.Test; 16 16 import org.openstreetmap.josm.TestUtils; 17 17 import org.openstreetmap.josm.data.gpx.GpxData; … … 28 28 * Unit tests of {@link GpxDrawHelper} class. 29 29 */ 30 publicclass GpxDrawHelperTest {30 class GpxDrawHelperTest { 31 31 32 32 /** 33 33 * Setup test. 34 34 */ 35 @R ule35 @RegisterExtension 36 36 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 37 37 public JOSMTestRules test = new JOSMTestRules(); … … 44 44 */ 45 45 @Test 46 publicvoid testTicket12312() throws FileNotFoundException, IOException, SAXException {46 void testTicket12312() throws FileNotFoundException, IOException, SAXException { 47 47 final Map<String, String> prefs = new HashMap<String, String>() {{ 48 48 put("colormode.dynamic-range", "true"); … … 60 60 */ 61 61 @Test 62 publicvoid testNone() throws IOException, SAXException {62 void testNone() throws IOException, SAXException { 63 63 final List<String> colors = calculateColors("nodist/data/2094047.gpx", Collections.emptyMap(), 10); 64 64 assertEquals("[#000000, #000000, #000000, #000000, #000000, #000000, #000000, #000000, #000000, #000000]", colors.toString()); … … 72 72 */ 73 73 @Test 74 publicvoid testVelocity() throws IOException, SAXException {74 void testVelocity() throws IOException, SAXException { 75 75 final Map<String, String> prefs = Collections.singletonMap("colormode", Integer.toString(ColorMode.VELOCITY.toIndex())); 76 76 final List<String> colors = calculateColors("nodist/data/2094047.gpx", prefs, 10); … … 85 85 */ 86 86 @Test 87 publicvoid testVelocityDynamic() throws IOException, SAXException {87 void testVelocityDynamic() throws IOException, SAXException { 88 88 final Map<String, String> prefs = new HashMap<String, String>() {{ 89 89 put("colormode.dynamic-range", "true"); … … 101 101 */ 102 102 @Test 103 publicvoid testDirection() throws IOException, SAXException {103 void testDirection() throws IOException, SAXException { 104 104 final Map<String, String> prefs = Collections.singletonMap("colormode", Integer.toString(ColorMode.DIRECTION.toIndex())); 105 105 final List<String> colors = calculateColors("nodist/data/2094047.gpx", prefs, 10); … … 114 114 */ 115 115 @Test 116 publicvoid testTime() throws IOException, SAXException {116 void testTime() throws IOException, SAXException { 117 117 final Map<String, String> prefs = Collections.singletonMap("colormode", Integer.toString(ColorMode.TIME.toIndex())); 118 118 final List<String> colors = calculateColors("nodist/data/2094047.gpx", prefs, 10);
Note:
See TracChangeset
for help on using the changeset viewer.
