Ignore:
Timestamp:
2019-05-20T01:20:35+02:00 (7 years ago)
Author:
Don-vip
Message:

nicer test names

File:
1 edited

Legend:

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

    r15095 r15098  
    88import java.util.ArrayList;
    99import java.util.List;
    10 import java.util.stream.Collectors;
    1110
    1211import org.junit.BeforeClass;
     
    3534 */
    3635@RunWith(ParallelParameterized.class)
    37 public class MapPaintPreferenceTestIT {
     36public class MapPaintPreferenceTestIT extends AbstractExtendedSourceEntryTestCase {
    3837
    3938    /**
     
    4342    @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
    4443    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<>();
    5044
    5145    /**
     
    6660    public static List<Object[]> data() throws Exception {
    6761        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());
    7063    }
    7164
     
    7770     */
    7871    public MapPaintPreferenceTestIT(String displayName, String url, ExtendedSourceEntry source) {
    79         this.source = source;
     72        super(source);
    8073    }
    8174
     
    116109        assumeTrue(ignoredErrors.toString(), ignoredErrors.isEmpty());
    117110    }
    118 
    119     private static boolean isIgnoredSubstring(String substring) {
    120         return errorsToIgnore.parallelStream().anyMatch(x -> substring.contains(x));
    121     }
    122111}
Note: See TracChangeset for help on using the changeset viewer.