Changeset 8940 in josm for trunk/test/unit
- Timestamp:
- 2015-10-24T15:34:20+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/MapPaintPreferenceTest.java
r8937 r8940 6 6 7 7 import java.io.IOException; 8 import java.util.ArrayList;9 8 import java.util.Collection; 9 import java.util.HashMap; 10 import java.util.Map; 10 11 11 12 import org.junit.BeforeClass; … … 39 40 .loadAndGetAvailableSources(); 40 41 assertFalse(sources.isEmpty()); 41 Collection<Throwable> allErrors = new ArrayList<>();42 Map<String, Collection<Throwable>> allErrors = new HashMap<>(); 42 43 for (ExtendedSourceEntry source : sources) { 43 44 System.out.print(source.url); 44 45 Collection<Throwable> errors = MapPaintStyles.addStyle(source); 45 46 System.out.println(errors.isEmpty() ? " => OK" : " => KO"); 46 allErrors.addAll(errors); 47 if (!errors.isEmpty()) { 48 allErrors.put(source.url, errors); 49 } 47 50 } 48 assertTrue(allErrors. isEmpty());51 assertTrue(allErrors.toString(), allErrors.isEmpty()); 49 52 } 50 53 }
Note:
See TracChangeset
for help on using the changeset viewer.