Ignore:
Timestamp:
2016-12-09T09:23:47+01:00 (8 years ago)
Author:
simon04
Message:

JOSM/wikipedia: Resolve Wikipedia redirects when failing Wikidata lookup (patch by nyurik, modified) - fix #josm14001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wikipedia/test/unit/org/wikipedia/WikipediaAppTest.java

    r33075 r33098  
    119119
    120120    @Test
     121    public void testGetWikidataForArticlesResolveRedirects() throws Exception {
     122        final Map<String, String> map = WikipediaApp.forLanguage("en")
     123                .getWikidataForArticles(Arrays.asList("einstein", "USA"));
     124        assertThat(map.get("einstein"), is("Q937"));
     125        assertThat(map.get("USA"), is("Q30"));
     126        assertThat(map.size(), is(2));
     127    }
     128
     129    @Test
    121130    public void testTicket13991() throws Exception {
    122131        final Map<String, String> map = WikipediaApp.forLanguage("en")
Note: See TracChangeset for help on using the changeset viewer.