Changeset 12859 in josm for trunk/test
- Timestamp:
- 2017-09-14T21:35:25+02:00 (7 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelperTest.java
r12619 r12859 17 17 import org.junit.Rule; 18 18 import org.junit.Test; 19 import org.openstreetmap.josm. gui.tagging.ac.AutoCompletionListItem;19 import org.openstreetmap.josm.data.tagging.ac.AutoCompletionItem; 20 20 import org.openstreetmap.josm.testutils.JOSMTestRules; 21 21 … … 46 46 @Test 47 47 public void testAcItemComparator() { 48 List<AutoCompletion ListItem> list = new ArrayList<>();49 list.add(new AutoCompletion ListItem("Bing Sat"));50 list.add(new AutoCompletion ListItem("survey"));51 list.add(new AutoCompletion ListItem("Bing"));52 list.add(new AutoCompletion ListItem("digitalglobe"));53 list.add(new AutoCompletion ListItem("bing"));54 list.add(new AutoCompletion ListItem("DigitalGlobe"));48 List<AutoCompletionItem> list = new ArrayList<>(); 49 list.add(new AutoCompletionItem("Bing Sat")); 50 list.add(new AutoCompletionItem("survey")); 51 list.add(new AutoCompletionItem("Bing")); 52 list.add(new AutoCompletionItem("digitalglobe")); 53 list.add(new AutoCompletionItem("bing")); 54 list.add(new AutoCompletionItem("DigitalGlobe")); 55 55 list.sort(TagEditHelper.DEFAULT_AC_ITEM_COMPARATOR); 56 56 assertEquals(Arrays.asList("Bing", "bing", "Bing Sat", "digitalglobe", "DigitalGlobe", "survey"), 57 list.stream().map(AutoCompletion ListItem::getValue).collect(Collectors.toList()));57 list.stream().map(AutoCompletionItem::getValue).collect(Collectors.toList())); 58 58 } 59 59
Note:
See TracChangeset
for help on using the changeset viewer.