use of org.wikivoyage.listings.language.english.English in project wikivoyage-listings by baturin.
the class InputTests method processEnglish.
@Test
public void processEnglish() throws Exception {
List<Listing> pois = parseResourcePOIs("sample-article-en.wikicode", new English(), "Tokyo/Roppongi");
// Check number of POIs
Assert.assertEquals(71, pois.size());
// Check a particular POI in detail
Listing poi = pois.get(68);
Assert.assertEquals("Tokyo/Roppongi", poi.getArticle());
Assert.assertEquals("sleep", poi.getType());
Assert.assertEquals("Grand Hyatt Tokyo", poi.getTitle());
Assert.assertEquals("", poi.getAlt());
Assert.assertEquals("6-10-3 Roppongi", poi.getAddress());
Assert.assertEquals("In Roppongi Hills", poi.getDirections());
Assert.assertEquals("+81 3 4333-1234", poi.getPhone());
Assert.assertEquals("", poi.getTollFree());
Assert.assertEquals("", poi.getEmail());
Assert.assertEquals("+81 3 4333-8123", poi.getFax());
Assert.assertEquals("http://tokyo.grand.hyatt.com/", poi.getUrl());
Assert.assertEquals("", poi.getHours());
Assert.assertEquals("15:00", poi.getCheckIn());
Assert.assertEquals("12:00", poi.getCheckOut());
Assert.assertEquals("Grand Hyatt Tokyo.JPG", poi.getImage());
Assert.assertEquals("Rack rates marginally cheaper than the Park Hyatt at ¥37,000 and up", poi.getPrice());
Assert.assertEquals("35.65968", poi.getLatitude());
Assert.assertEquals("139.72814", poi.getLongitude());
Assert.assertEquals("A part of Roppongi Hills, and not to be confused with the more famous Park Hyatt " + "of ''Lost in Translation'' fame, which is in Shinjuku. Sleek and minimalistic, " + "all black, gray and brown, with expensive design that never hesitates to sacrifice " + "function for form, but the superlative service makes up for it.", poi.getDescription());
}