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;
|
| 8 | 8 | |
| 9 | 9 | import org.junit.Rule; |
| 10 | 10 | import org.junit.Test; |
| | 11 | import org.openstreetmap.josm.TestUtils; |
| 11 | 12 | import org.openstreetmap.josm.gui.ExtendedDialog; |
| 12 | 13 | import org.openstreetmap.josm.gui.layer.GpxLayerTest; |
| 13 | 14 | import org.openstreetmap.josm.testutils.JOSMTestRules; |
| … |
… |
public class ChooseTrackVisibilityActionTest {
|
| 33 | 34 | */ |
| 34 | 35 | @Test |
| 35 | 36 | public void testAction() throws Exception { |
| | 37 | TestUtils.assumeWorkingJMockit(); |
| 36 | 38 | final ExtendedDialogMocker edMocker = new ExtendedDialogMocker() { |
| 37 | 39 | protected String getString(final ExtendedDialog instance) { |
| 38 | 40 | return ((JLabel) ((JPanel) this.getContent(instance)).getComponent(2)).getText(); |