Changeset 32612 in osm for applications/editors
- Timestamp:
- 2016-07-08T19:58:28+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wikipedia/test/unit/org/wikipedia/WikipediaAppTest.java
r32609 r32612 145 145 public boolean evaluate(WikipediaEntry entry) { 146 146 return "Reichstagsgebäude".equals(entry.wikipediaArticle) && "de".equals(entry.wikipediaLang); 147 } 148 })); 149 } 150 151 @Test 152 public void testFromCoordinatesWikidata() throws Exception { 153 final List<WikipediaEntry> entries = WikipediaApp.getEntriesFromCoordinates("wikidata", 154 new LatLon(47.20, 11.30), new LatLon(47.22, 11.32)); 155 assertTrue(Utils.exists(entries, new Predicate<WikipediaEntry>() { 156 @Override 157 public boolean evaluate(WikipediaEntry entry) { 158 return "Q865406".equals(entry.wikipediaArticle) && "wikidata".equals(entry.wikipediaLang) && "Birgitzer Alm".equals(entry.name); 147 159 } 148 160 }));
Note:
See TracChangeset
for help on using the changeset viewer.