Changeset 16597 in josm for trunk/test/unit/org
- Timestamp:
- 2020-06-11T11:32:21+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/properties/TaginfoActionTest.java
r16596 r16597 4 4 import static org.junit.Assert.assertEquals; 5 5 import static org.junit.Assert.assertNull; 6 7 import javax.swing.Action; 6 8 7 9 import org.junit.Rule; … … 36 38 */ 37 39 @Test 40 public void testCustomInstance() { 41 TaginfoAction action = new TaginfoAction(() -> null, () -> null).withTaginfoUrl("example.com", "https://taginfo.example.com////"); 42 assertEquals("example.com", action.getValue(Action.NAME)); 43 assertEquals("https://taginfo.example.com/keys/railway", action.getTaginfoUrlForTag(new Tag("railway"))); 44 } 45 46 /** 47 * Unit test of {@link TaginfoAction#toTagHistoryAction()} 48 */ 49 @Test 38 50 public void testTagHistoryUrls() { 39 51 TaginfoAction action = new TaginfoAction(() -> null, () -> null).toTagHistoryAction();
Note:
See TracChangeset
for help on using the changeset viewer.