Changeset 15794 in josm for trunk/test/unit
- Timestamp:
- 2020-01-29T20:58:58+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/tools/Tag2LinkTest.java
r15709 r15794 22 22 void checkLinks(String... expected) { 23 23 Assert.assertEquals(Arrays.asList(expected), links); 24 } 25 26 /** 27 * Unit test of function {@link Tag2Link#getLinksForTag}. 28 */ 29 @Test 30 public void testWebsite() { 31 Tag2Link.getLinksForTag("website", "http://www.openstreetmap.org/", this::addLink); 32 checkLinks("Open www.openstreetmap.org // http://www.openstreetmap.org/"); 33 links.clear(); 34 Tag2Link.getLinksForTag("website", "https://www.openstreetmap.org/", this::addLink); 35 checkLinks("Open www.openstreetmap.org // https://www.openstreetmap.org/"); 36 links.clear(); 37 Tag2Link.getLinksForTag("website", "www.openstreetmap.org", this::addLink); 38 checkLinks("Open www.openstreetmap.org // http://www.openstreetmap.org"); 24 39 } 25 40
Note:
See TracChangeset
for help on using the changeset viewer.