Changeset 11299 in josm for trunk/test/unit/org
- Timestamp:
- 2016-11-23T23:39:44+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/OsmUrlToBoundsTest.java
r10626 r11299 3 3 4 4 import org.junit.Assert; 5 import org.junit.Rule; 5 6 import org.junit.Test; 6 7 import org.openstreetmap.josm.Main; 7 8 import org.openstreetmap.josm.data.Bounds; 9 import org.openstreetmap.josm.testutils.JOSMTestRules; 10 11 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; 8 12 9 13 /** … … 11 15 */ 12 16 public class OsmUrlToBoundsTest { 17 18 /** 19 * Setup test. 20 */ 21 @Rule 22 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 23 public JOSMTestRules test = new JOSMTestRules(); 24 25 /** 26 * Test for {@link OsmUrlToBounds#positionToBounds}. 27 */ 28 @Test 29 public void testPositionToBounds() { 30 Assert.assertEquals(new Bounds(51.7123487,8.7552027,51.7251104,8.7680773), 31 OsmUrlToBounds.positionToBounds(51.71873, 8.76164, 17)); 32 Assert.assertEquals(new Bounds(40.8582551,-75.7534187,40.8660446,-75.7469813), 33 OsmUrlToBounds.positionToBounds(40.86215, -75.75020, 18)); 34 } 35 13 36 /** 14 37 * data for {@link #testParse}
Note:
See TracChangeset
for help on using the changeset viewer.