Changeset 14616 in josm for trunk/test/unit/org
- Timestamp:
- 2018-12-30T23:55:17+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTestIT.java
r14614 r14616 12 12 import java.util.ArrayList; 13 13 import java.util.Collections; 14 import java.util.LinkedList; 14 15 import java.util.List; 15 16 import java.util.Locale; … … 24 25 25 26 import org.apache.commons.jcs.access.CacheAccess; 27 import org.junit.AfterClass; 26 28 import org.junit.BeforeClass; 27 29 import org.junit.ClassRule; … … 106 108 private static TMSCachedTileLoaderJob helper; 107 109 private static List<String> errorsToIgnore; 110 private static List<String> notIgnoredErrors; 108 111 109 112 /** … … 115 118 helper = new TMSCachedTileLoaderJob(null, null, new CacheAccess<>(null), new TileJobOptions(0, 0, null, 0), null); 116 119 errorsToIgnore = TestUtils.getIgnoredErrorMessages(ImageryPreferenceTestIT.class); 120 notIgnoredErrors = new LinkedList<>(errorsToIgnore); 121 } 122 123 /** 124 * Cleanup test 125 */ 126 @AfterClass 127 public static void afterClass() { 128 for (String e : notIgnoredErrors) { 129 Logging.warn("Ignore line unused: " + e); 130 } 117 131 } 118 132 … … 141 155 private boolean addError(ImageryInfo info, String error) { 142 156 String errorMsg = error.replace('\n', ' '); 157 if (notIgnoredErrors.contains(errorMsg)) 158 notIgnoredErrors.remove(errorMsg); 143 159 return addError(errorsToIgnore.contains(errorMsg) ? ignoredErrors : errors, info, errorMsg); 144 160 }
Note:
See TracChangeset
for help on using the changeset viewer.