Changeset 15098 in josm for trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/MapPaintPreferenceTestIT.java
- Timestamp:
- 2019-05-20T01:20:35+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/preferences/map/MapPaintPreferenceTestIT.java
r15095 r15098 8 8 import java.util.ArrayList; 9 9 import java.util.List; 10 import java.util.stream.Collectors;11 10 12 11 import org.junit.BeforeClass; … … 35 34 */ 36 35 @RunWith(ParallelParameterized.class) 37 public class MapPaintPreferenceTestIT { 36 public class MapPaintPreferenceTestIT extends AbstractExtendedSourceEntryTestCase { 38 37 39 38 /** … … 43 42 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 44 43 public static JOSMTestRules test = new JOSMTestRules().https().timeout(15000*60).parameters(); 45 46 /** Entry to test */47 private final ExtendedSourceEntry source;48 private final List<String> ignoredErrors = new ArrayList<>();49 private static final List<String> errorsToIgnore = new ArrayList<>();50 44 51 45 /** … … 66 60 public static List<Object[]> data() throws Exception { 67 61 ImageProvider.clearCache(); 68 return new MapPaintPreference.MapPaintSourceEditor().loadAndGetAvailableSources().stream() 69 .map(x -> new Object[] {x.getDisplayName(), x.url, x}).collect(Collectors.toList()); 62 return getTestParameters(new MapPaintPreference.MapPaintSourceEditor().loadAndGetAvailableSources()); 70 63 } 71 64 … … 77 70 */ 78 71 public MapPaintPreferenceTestIT(String displayName, String url, ExtendedSourceEntry source) { 79 this.source = source;72 super(source); 80 73 } 81 74 … … 116 109 assumeTrue(ignoredErrors.toString(), ignoredErrors.isEmpty()); 117 110 } 118 119 private static boolean isIgnoredSubstring(String substring) {120 return errorsToIgnore.parallelStream().anyMatch(x -> substring.contains(x));121 }122 111 }
Note:
See TracChangeset
for help on using the changeset viewer.
