Ticket #16855: v1-0002-ChooseTrackVisibilityActionTest-add-forgotten-ass.patch

File v1-0002-ChooseTrackVisibilityActionTest-add-forgotten-ass.patch, 1.5 KB (added by ris, 7 years ago)
  • test/unit/org/openstreetmap/josm/gui/layer/gpx/ChooseTrackVisibilityActionTest.java

    From 50dbf0badfa3aa79b60253ceb10268b0b5372fa0 Mon Sep 17 00:00:00 2001
    From: Robert Scott <code@humanleg.org.uk>
    Date: Thu, 18 Oct 2018 21:19:41 +0100
    Subject: [PATCH v1 2/2] ChooseTrackVisibilityActionTest: add forgotten
     assumeWorkingJMockit check
    
    ---
     .../josm/gui/layer/gpx/ChooseTrackVisibilityActionTest.java             | 2 ++
     1 file changed, 2 insertions(+)
    
    diff --git a/test/unit/org/openstreetmap/josm/gui/layer/gpx/ChooseTrackVisibilityActionTest.java b/test/unit/org/openstreetmap/josm/gui/layer/gpx/ChooseTrackVisibilityActionTest.java
    index 4a5289b03..76df3f98d 100644
    a b import javax.swing.JPanel;  
    88
    99import org.junit.Rule;
    1010import org.junit.Test;
     11import org.openstreetmap.josm.TestUtils;
    1112import org.openstreetmap.josm.gui.ExtendedDialog;
    1213import org.openstreetmap.josm.gui.layer.GpxLayerTest;
    1314import org.openstreetmap.josm.testutils.JOSMTestRules;
    public class ChooseTrackVisibilityActionTest {  
    3334     */
    3435    @Test
    3536    public void testAction() throws Exception {
     37        TestUtils.assumeWorkingJMockit();
    3638        final ExtendedDialogMocker edMocker = new ExtendedDialogMocker() {
    3739            protected String getString(final ExtendedDialog instance) {
    3840                return ((JLabel) ((JPanel) this.getContent(instance)).getComponent(2)).getText();