Changeset 12859 in josm for trunk/test


Ignore:
Timestamp:
2017-09-14T21:35:25+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15229 - see #15182 - deprecate non-GUI AutoCompletion* classes from gui.tagging.ac. Offer better replacements in new data.tagging.ac package

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  
    1717import org.junit.Rule;
    1818import org.junit.Test;
    19 import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionListItem;
     19import org.openstreetmap.josm.data.tagging.ac.AutoCompletionItem;
    2020import org.openstreetmap.josm.testutils.JOSMTestRules;
    2121
     
    4646    @Test
    4747    public void testAcItemComparator() {
    48         List<AutoCompletionListItem> list = new ArrayList<>();
    49         list.add(new AutoCompletionListItem("Bing Sat"));
    50         list.add(new AutoCompletionListItem("survey"));
    51         list.add(new AutoCompletionListItem("Bing"));
    52         list.add(new AutoCompletionListItem("digitalglobe"));
    53         list.add(new AutoCompletionListItem("bing"));
    54         list.add(new AutoCompletionListItem("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"));
    5555        list.sort(TagEditHelper.DEFAULT_AC_ITEM_COMPARATOR);
    5656        assertEquals(Arrays.asList("Bing", "bing", "Bing Sat", "digitalglobe", "DigitalGlobe", "survey"),
    57                 list.stream().map(AutoCompletionListItem::getValue).collect(Collectors.toList()));
     57                list.stream().map(AutoCompletionItem::getValue).collect(Collectors.toList()));
    5858    }
    5959
Note: See TracChangeset for help on using the changeset viewer.