Changeset 15927 in josm


Ignore:
Timestamp:
2020-02-24T22:06:28+01:00 (3 months ago)
Author:
simon04
Message:

see #18764, see #14088 - Add non-regression test (fix for headless)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/dialogs/properties/TagEditHelperTest.java

    r15921 r15927  
    66import static org.junit.Assert.assertNotNull;
    77
     8import java.awt.GraphicsEnvironment;
    89import java.lang.reflect.Field;
    910import java.lang.reflect.InvocationTargetException;
     
    3536import org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSStyleSource;
    3637import org.openstreetmap.josm.testutils.JOSMTestRules;
     38import org.openstreetmap.josm.testutils.mockers.WindowMocker;
    3739
    3840import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     
    9799    public void testTicket18764() throws NoSuchMethodException, SecurityException, IllegalAccessException,
    98100            IllegalArgumentException, InvocationTargetException, NoSuchFieldException {
     101        TestUtils.assumeWorkingJMockit();
     102        if (GraphicsEnvironment.isHeadless()) {
     103            new WindowMocker();
     104        }
    99105        MapCSSStyleSource css = new MapCSSStyleSource(
    100106                "*[building] ⧉ *[highway] { text: tr(\"Building crossing highway\"); }");
Note: See TracChangeset for help on using the changeset viewer.