Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/io/rtklib/RtkLibPosReaderTest.java
- Timestamp:
- 2020-10-28T20:41:00+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/rtklib/RtkLibPosReaderTest.java
r16006 r17275 2 2 package org.openstreetmap.josm.io.rtklib; 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.IOException; … … 12 12 import java.util.TimeZone; 13 13 14 import org.junit. Before;15 import org.junit. Rule;16 import org.junit. Test;14 import org.junit.jupiter.api.BeforeEach; 15 import org.junit.jupiter.api.Test; 16 import org.junit.jupiter.api.extension.RegisterExtension; 17 17 import org.openstreetmap.josm.data.coor.LatLon; 18 18 import org.openstreetmap.josm.data.gpx.GpxConstants; … … 27 27 * Unit tests of {@link RtkLibPosReader} class. 28 28 */ 29 publicclass RtkLibPosReaderTest {29 class RtkLibPosReaderTest { 30 30 /** 31 31 * Set the timezone and timeout. 32 32 */ 33 @R ule33 @RegisterExtension 34 34 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 35 35 public JOSMTestRules test = new JOSMTestRules(); … … 40 40 * Forces the timezone. 41 41 */ 42 @Before 42 @BeforeEach 43 43 public void setUp() { 44 44 iso8601.setTimeZone(DateUtils.UTC); … … 57 57 */ 58 58 @Test 59 publicvoid testReader() throws Exception {59 void testReader() throws Exception { 60 60 RtkLibPosReader in = read("nodist/data/rtklib_example.pos"); 61 61 assertEquals(137, in.getNumberOfCoordinates()); … … 83 83 */ 84 84 @Test 85 publicvoid testReader2() throws Exception {85 void testReader2() throws Exception { 86 86 RtkLibPosReader in = read("nodist/data/rtklib_example2.pos"); 87 87 assertEquals(6, in.getNumberOfCoordinates());
Note:
See TracChangeset
for help on using the changeset viewer.
