Changeset 33626 in osm for applications/editors/josm/plugins/wikipedia/test
- Timestamp:
- 2017-09-18T06:27:29+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/test/unit/org/wikipedia/io/WikosmDownloadReaderTest.java
r33622 r33626 17 17 import java.util.List; 18 18 19 import static org.hamcrest.CoreMatchers.equalTo; 19 20 import static org.hamcrest.CoreMatchers.is; 20 21 import static org.junit.Assert.assertThat; … … 33 34 34 35 /** 35 * Tests evaluating the extended query feature {@code date}. 36 * Tests point generation 37 */ 38 @Test 39 public void testPoint() throws UnsupportedEncodingException { 40 assertThat(WikosmDownloadReader.point(9.5, 47.16), 41 is("\"Point(9.5 47.16)\"^^geo:wktLiteral")); 42 assertThat(WikosmDownloadReader.boxParams(1, 2, 3, 4), 43 is("\nbd:serviceParam wikibase:cornerWest \"Point(1 2)\"^^geo:wktLiteral." + 44 "\nbd:serviceParam wikibase:cornerEast \"Point(3 4)\"^^geo:wktLiteral.\n")); 45 } 46 47 /** 48 * Tests server response parsing 36 49 */ 37 50 @Test
Note:
See TracChangeset
for help on using the changeset viewer.
