Last change
on this file since 12632 was 12632, checked in by Don-vip, 7 years ago |
see #15182 - fix unit tests
|
-
Property svn:eol-style
set to
native
|
File size:
1.0 KB
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.dialogs;
|
---|
3 |
|
---|
4 | import org.junit.Rule;
|
---|
5 | import org.junit.Test;
|
---|
6 | import org.openstreetmap.josm.Main;
|
---|
7 | import org.openstreetmap.josm.data.osm.DataSet;
|
---|
8 | import org.openstreetmap.josm.gui.MainApplication;
|
---|
9 | import org.openstreetmap.josm.gui.layer.OsmDataLayer;
|
---|
10 | import org.openstreetmap.josm.testutils.JOSMTestRules;
|
---|
11 |
|
---|
12 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
---|
13 |
|
---|
14 | /**
|
---|
15 | * Unit tests of {@link MapPaintDialog} class.
|
---|
16 | */
|
---|
17 | public class MapPaintDialogTest {
|
---|
18 |
|
---|
19 | /**
|
---|
20 | * Setup tests
|
---|
21 | */
|
---|
22 | @Rule
|
---|
23 | @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
|
---|
24 | public JOSMTestRules test = new JOSMTestRules().main().platform().projection();
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * Unit test of {@link MapPaintDialog.InfoAction} class.
|
---|
28 | */
|
---|
29 | @Test
|
---|
30 | public void testInfoAction() {
|
---|
31 | Main.getLayerManager().addLayer(new OsmDataLayer(new DataSet(), "", null));
|
---|
32 | MainApplication.getMap().mapPaintDialog.new InfoAction().actionPerformed(null);
|
---|
33 | }
|
---|
34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.