Changeset 17564 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2021-03-15T13:53:05+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolutionUtilTest.java
r17275 r17564 5 5 import static org.junit.jupiter.api.Assertions.assertFalse; 6 6 import static org.junit.jupiter.api.Assertions.assertNull; 7 import static org.junit.jupiter.api.Assertions.assertThrows; 7 8 import static org.junit.jupiter.api.Assertions.assertTrue; 8 import static org.junit.jupiter.api.Assertions.assertThrows;9 9 10 10 import java.util.Arrays; … … 213 213 void testResolve() { 214 214 for (AutomaticCombine resolver: differentlyConstructed(new AutomaticCombine("random", "", true, "|", "String"))) { 215 assertEquals( resolver.resolve(newHashSet("value1", "value2")), "value1|value2");216 assertEquals( resolver.resolve(newHashSet("3|1", "4|2|1", "6|05", "3;1")), "05|1|2|3|3;1|4|6");215 assertEquals("value1|value2", resolver.resolve(newHashSet("value1", "value2"))); 216 assertEquals("05|1|2|3|3;1|4|6", resolver.resolve(newHashSet("3|1", "4|2|1", "6|05", "3;1"))); 217 217 } 218 218 219 219 for (AutomaticCombine resolver: differentlyConstructed(new AutomaticCombine("test[45].*", "", true, ";", "Integer"))) { 220 assertEquals( resolver.resolve(newHashSet("1254545;95;24", "25;24;3")), "3;24;25;95;1254545");220 assertEquals("3;24;25;95;1254545", resolver.resolve(newHashSet("1254545;95;24", "25;24;3"))); 221 221 } 222 222 … … 224 224 String resolution = resolver.resolve(newHashSet("3;x;1", "4;x")); 225 225 assertTrue(resolution.equals("3;x;1;4") || resolution.equals("4;x;3;1")); 226 } 227 228 for (AutomaticCombine resolver: differentlyConstructed(new AutomaticCombine("foo", "", true, ";", "Integer"))) { 229 assertEquals("bar;1;2;3", resolver.resolve(newHashSet("1;2;3", "bar"))); 226 230 } 227 231 }
Note:
See TracChangeset
for help on using the changeset viewer.