Changeset 11614 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2017-02-25T14:29:42+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolutionUtilTest.java
r11606 r11614 5 5 import static org.junit.Assert.assertFalse; 6 6 import static org.junit.Assert.assertNull; 7 import static org.junit.Assert.assertSame; 7 8 import static org.junit.Assert.assertTrue; 8 9 … … 81 82 tc.add(otherSource); // other source should prevent resolution 82 83 TagConflictResolutionUtil.applyAutomaticTagConflictResolution(tc); 83 assert True(tc.getValues("source").size() == 18);84 assertSame(18, tc.getValues("source").size()); 84 85 tc.remove(otherSource); 85 86 TagConflictResolutionUtil.applyAutomaticTagConflictResolution(tc); … … 372 373 public void testGroupChoices() { 373 374 Collection<AutomaticChoiceGroup> groups = AutomaticChoiceGroup.groupChoices(Arrays.asList(choiceKey1Group1, choiceKey1Group2)); 374 assert True(groups.size() == 2);375 assertSame(2, groups.size()); 375 376 376 377 groups = AutomaticChoiceGroup.groupChoices(Arrays.asList( 377 378 choiceKey1Group1, choiceKey1Group2, choiceKey2Group1, choiceKey2Group2, choiceEmpty)); 378 assert True(groups.size() == 5);379 assertSame(5, groups.size()); 379 380 380 381 groups = AutomaticChoiceGroup.groupChoices(Arrays.asList(choiceKey1Group1, choiceKey1Group1bis)); 381 assert True(groups.size() == 1);382 assertSame(1, groups.size()); 382 383 AutomaticChoiceGroup group1 = groups.iterator().next(); 383 384 assertEquals(group1.key, choiceKey1Group1.key); … … 388 389 choiceKey1Group1, choiceKey1Group1bis, choiceKey1Group2, choiceKey1Group2bis, 389 390 choiceKey2Group1, choiceKey2Group1bis, choiceKey2Group2, choiceKey2Group2bis)); 390 assert True(groups.size() == 4);391 assertSame(4, groups.size()); 391 392 for (AutomaticChoiceGroup group: groups) { 392 393 for (AutomaticChoice choice: group.choices) {
Note:
See TracChangeset
for help on using the changeset viewer.