Changeset 18870 in josm for trunk/test/unit/org/openstreetmap/josm/data/coor
- Timestamp:
- 2023-10-16T15:19:07+02:00 (21 months ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm/data/coor
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/coor/LatLonTest.java
r18494 r18870 11 11 12 12 import org.junit.jupiter.api.Test; 13 import org.junit.jupiter.api.extension.RegisterExtension;14 13 import org.openstreetmap.josm.TestUtils; 15 14 import org.openstreetmap.josm.data.Bounds; 16 import org.openstreetmap.josm.testutils. JOSMTestRules;15 import org.openstreetmap.josm.testutils.annotations.Projection; 17 16 18 17 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; … … 22 21 * Unit tests for class {@link LatLon}. 23 22 */ 23 @Projection 24 24 public class LatLonTest { 25 26 /**27 * Setup test.28 */29 @RegisterExtension30 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")31 public JOSMTestRules test = new JOSMTestRules().projection();32 33 25 private static final double EPSILON = 1e-6; 34 26 … … 156 148 157 149 /** 158 * Unit test of {@link LatLon#LatLon(LatLon)}. 150 * Unit test of {@link LatLon#LatLon(ILatLon)}. 159 151 */ 160 152 @Test -
trunk/test/unit/org/openstreetmap/josm/data/coor/PolarCoorTest.java
r17275 r18870 7 7 import java.text.DecimalFormat; 8 8 9 import org.junit.jupiter.api.extension.RegisterExtension;10 9 import org.junit.jupiter.api.Test; 11 10 import org.openstreetmap.josm.TestUtils; 12 import org.openstreetmap.josm.testutils. JOSMTestRules;11 import org.openstreetmap.josm.testutils.annotations.Projection; 13 12 14 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;15 13 import nl.jqno.equalsverifier.EqualsVerifier; 16 14 … … 18 16 * Test the {@link PolarCoor} class. 19 17 */ 18 @Projection 20 19 class PolarCoorTest { 21 22 /**23 * Setup test.24 */25 @RegisterExtension26 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")27 public JOSMTestRules test = new JOSMTestRules().projection();28 29 20 /** 30 21 * Test {@link PolarCoor#PolarCoor} -
trunk/test/unit/org/openstreetmap/josm/data/coor/conversion/ICoordinateFormatTest.java
r17275 r18870 4 4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 5 6 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;7 8 import org.junit.jupiter.api.extension.RegisterExtension;9 6 import org.junit.jupiter.api.Test; 10 7 import org.openstreetmap.josm.data.coor.ILatLon; 11 8 import org.openstreetmap.josm.data.coor.LatLon; 12 import org.openstreetmap.josm.testutils. JOSMTestRules;9 import org.openstreetmap.josm.testutils.annotations.Projection; 13 10 14 11 /** 15 12 * Test for {@link ICoordinateFormat} implementations. 16 13 */ 14 @Projection 17 15 class ICoordinateFormatTest { 18 /**19 * Setup test.20 */21 @RegisterExtension22 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")23 public JOSMTestRules test = new JOSMTestRules().projection();24 25 16 /** 26 17 * Tests {@link ICoordinateFormat#latToString(org.openstreetmap.josm.data.coor.ILatLon)} -
trunk/test/unit/org/openstreetmap/josm/data/coor/conversion/LatLonParserTest.java
r17275 r18870 6 6 7 7 import org.junit.jupiter.api.Test; 8 import org.junit.jupiter.api.extension.RegisterExtension;9 8 import org.openstreetmap.josm.data.coor.LatLon; 10 import org.openstreetmap.josm.testutils.JOSMTestRules; 11 12 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 9 import org.openstreetmap.josm.testutils.annotations.Projection; 13 10 14 11 /** 15 12 * Unit tests for class {@link LatLonParser}. 16 13 */ 14 @Projection 17 15 class LatLonParserTest { 18 19 /**20 * Setup test.21 */22 @RegisterExtension23 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")24 public JOSMTestRules test = new JOSMTestRules().projection();25 26 16 /** 27 17 * Unit test of {@link LatLonParser#parse} method.
Note:
See TracChangeset
for help on using the changeset viewer.