Changeset 12214 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2017-05-19T20:56:36+02:00 (8 years ago)
Author:
Don-vip
Message:

see #14817 - better assertion error message, include preset source url

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/TaggingPresetPreferenceTestIT.java

    r11021 r12214  
    66
    77import java.io.IOException;
    8 import java.util.ArrayList;
    98import java.util.Collection;
     9import java.util.HashMap;
    1010import java.util.HashSet;
     11import java.util.Map;
    1112import java.util.Set;
    1213
     
    5859        Main.pref.putInteger("socket.timeout.connect", 30);
    5960        Main.pref.putInteger("socket.timeout.read", 60);
    60         Collection<Throwable> allErrors = new ArrayList<>();
     61        Map<Object, Throwable> allErrors = new HashMap<>();
    6162        Set<String> allMessages = new HashSet<>();
    6263        for (ExtendedSourceEntry source : sources) {
     
    7374                    // ignore frequent network errors with www.freietonne.de causing too much Jenkins failures
    7475                    if (!source.url.contains("www.freietonne.de")) {
    75                         allErrors.add(e1);
     76                        allErrors.put(source.url, e1);
    7677                    }
    7778                    System.out.println(" => KO");
     
    8182                if (!source.url.contains("yopaseopor/")) {
    8283                    // ignore https://raw.githubusercontent.com/yopaseopor/traffic_signs_preset_JOSM cause too much errors
    83                     allErrors.add(e);
     84                    allErrors.put(source.url, e);
    8485                }
    8586                System.out.println(" => KO");
Note: See TracChangeset for help on using the changeset viewer.