source: josm/trunk/test/unit/org/openstreetmap/josm/data/osm/TagMapTest.java@ 17275

Last change on this file since 17275 was 17275, checked in by Don-vip, 3 years ago

see #16567 - upgrade almost all tests to JUnit 5, except those depending on WiremockRule

See https://github.com/tomakehurst/wiremock/issues/684

File size: 629 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm;
3
4import static org.junit.jupiter.api.Assertions.assertEquals;
5
6import org.junit.jupiter.api.Test;
7
8/**
9 * Unit tests of the {@code TagMap} class.
10 */
11class TagMapTest {
12
13 /**
14 * Unit test for {@link TagMap#toString}
15 */
16 @Test
17 void testToString() {
18 assertEquals("TagMap[]", new TagMap().toString());
19 assertEquals("TagMap[key=val]", new TagMap(new String[]{"key", "val"}).toString());
20 assertEquals("TagMap[key=val,foo=bar]", new TagMap(new String[]{"key", "val", "foo", "bar"}).toString());
21 }
22}
Note: See TracBrowser for help on using the repository browser.