Last change
on this file since 14138 was 14138, checked in by Don-vip, 6 years ago |
see #15229 - deprecate Main.platform and related methods - new class PlatformManager
|
-
Property svn:eol-style
set to
native
|
File size:
1002 bytes
|
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.data.osm.DataSet;
|
---|
7 | import org.openstreetmap.josm.gui.MainApplication;
|
---|
8 | import org.openstreetmap.josm.gui.layer.OsmDataLayer;
|
---|
9 | import org.openstreetmap.josm.testutils.JOSMTestRules;
|
---|
10 |
|
---|
11 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * Unit tests of {@link MapPaintDialog} class.
|
---|
15 | */
|
---|
16 | public class MapPaintDialogTest {
|
---|
17 |
|
---|
18 | /**
|
---|
19 | * Setup tests
|
---|
20 | */
|
---|
21 | @Rule
|
---|
22 | @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
|
---|
23 | public JOSMTestRules test = new JOSMTestRules().main().projection();
|
---|
24 |
|
---|
25 | /**
|
---|
26 | * Unit test of {@link MapPaintDialog.InfoAction} class.
|
---|
27 | */
|
---|
28 | @Test
|
---|
29 | public void testInfoAction() {
|
---|
30 | MainApplication.getLayerManager().addLayer(new OsmDataLayer(new DataSet(), "", null));
|
---|
31 | MainApplication.getMap().mapPaintDialog.new InfoAction().actionPerformed(null);
|
---|
32 | }
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.