Ignore:
Timestamp:
2019-05-19T17:11:38+02:00 (5 years ago)
Author:
Don-vip
Message:

parameterize integration tests for map paint styles and tagging presets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/testutils/JOSMTestRules.java

    r14380 r15095  
    4545import org.openstreetmap.josm.gui.mappaint.MapPaintStyles;
    4646import org.openstreetmap.josm.gui.oauth.OAuthAuthorizationWizard;
     47import org.openstreetmap.josm.gui.preferences.imagery.ImageryPreferenceTestIT;
    4748import org.openstreetmap.josm.gui.tagging.presets.TaggingPresets;
    4849import org.openstreetmap.josm.gui.util.GuiHelper;
     
    366367    }
    367368
     369    /**
     370     * Must be called if test run with Junit parameters
     371     * @return this instance, for easy chaining
     372     */
     373    public JOSMTestRules parameters() {
     374        try {
     375            apply(new Statement() {
     376                @Override
     377                public void evaluate() throws Throwable {
     378                    // Do nothing. Hack needed because @Parameters are computed before anything else
     379                }
     380            }, Description.createSuiteDescription(ImageryPreferenceTestIT.class)).evaluate();
     381        } catch (Throwable e) {
     382            Logging.error(e);
     383        }
     384        return this;
     385    }
     386
    368387    private static class MockVersion extends Version {
    369388        MockVersion(final String propertiesString) {
Note: See TracChangeset for help on using the changeset viewer.