Last change
on this file since 11241 was 11020, checked in by Don-vip, 8 years ago |
add more unit tests
|
-
Property svn:eol-style
set to
native
|
File size:
910 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.dialogs;
|
---|
3 |
|
---|
4 | import static org.junit.Assert.assertFalse;
|
---|
5 | import static org.junit.Assert.assertTrue;
|
---|
6 |
|
---|
7 | import org.junit.Rule;
|
---|
8 | import org.junit.Test;
|
---|
9 | import org.openstreetmap.josm.testutils.JOSMTestRules;
|
---|
10 |
|
---|
11 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * Unit tests of {@link MinimapDialog} class.
|
---|
15 | */
|
---|
16 | public class MinimapDialogTest {
|
---|
17 |
|
---|
18 | /**
|
---|
19 | * Setup tests
|
---|
20 | */
|
---|
21 | @Rule
|
---|
22 | @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
|
---|
23 | public JOSMTestRules test = new JOSMTestRules().commands();
|
---|
24 |
|
---|
25 | /**
|
---|
26 | * Unit test of {@link MinimapDialog} class.
|
---|
27 | */
|
---|
28 | @Test
|
---|
29 | public void testMinimapDialog() {
|
---|
30 | MinimapDialog dlg = new MinimapDialog();
|
---|
31 | dlg.showDialog();
|
---|
32 | assertTrue(dlg.isVisible());
|
---|
33 | dlg.hideDialog();
|
---|
34 | assertFalse(dlg.isVisible());
|
---|
35 | }
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.