Changeset 31852 in osm for applications/editors/josm/plugins/wikipedia/test/unit
- Timestamp:
- 2015-12-22T21:35:16+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/test/unit/org/wikipedia/WikipediaAppTest.java
r31847 r31852 13 13 import java.util.Collection; 14 14 import java.util.List; 15 import java.util.Map; 15 16 16 17 import static org.hamcrest.CoreMatchers.hasItem; … … 131 132 })); 132 133 } 134 135 @Test 136 public void testGetWikidataForArticles() throws Exception { 137 final Map<String, String> map = WikipediaApp.getWikidataForArticles("en", 138 Arrays.asList("London", "Vienna", "Völs, Tyrol", "a-non-existing-article")); 139 assertThat(map.get("London"), is("Q84")); 140 assertThat(map.get("Vienna"), is("Q1741")); 141 assertThat(map.get("Völs, Tyrol"), is("Q278250")); 142 assertThat(map.get("a-non-existing-article"), nullValue()); 143 assertThat(map.size(), is(4)); 144 } 133 145 }
Note:
See TracChangeset
for help on using the changeset viewer.