Changeset 9469 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2016-01-15T20:34:53+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/MapPaintPreferenceTest.java
r9458 r9469 7 7 import java.io.IOException; 8 8 import java.util.Collection; 9 import java.util.Collections; 9 10 import java.util.HashMap; 10 11 import java.util.Map; … … 79 80 } 80 81 } 81 System.out.println(style.isValid() ? " => OK" : " => KO"); 82 Collection<Throwable> errors = style.getErrors(); 83 Collection<String> warnings = style.getWarnings(); 84 if (!errors.isEmpty()) { 85 allErrors.put(source.url, errors); 86 } 87 if (!warnings.isEmpty()) { 88 allWarnings.put(source.url, warnings); 82 if (style != null) { 83 System.out.println(style.isValid() ? " => OK" : " => KO"); 84 Collection<Throwable> errors = style.getErrors(); 85 Collection<String> warnings = style.getWarnings(); 86 if (!errors.isEmpty()) { 87 allErrors.put(source.url, errors); 88 } 89 if (!warnings.isEmpty()) { 90 allWarnings.put(source.url, warnings); 91 } 92 } else { 93 allWarnings.put(source.url, Collections.singleton("MapPaintStyles.addStyle() returned null")); 89 94 } 90 95 }
Note:
See TracChangeset
for help on using the changeset viewer.