Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.download;
|
---|
3 |
|
---|
4 | import org.junit.jupiter.api.extension.RegisterExtension;
|
---|
5 | import org.junit.jupiter.api.Test;
|
---|
6 | import org.openstreetmap.josm.data.Bounds;
|
---|
7 | import org.openstreetmap.josm.testutils.JOSMTestRules;
|
---|
8 |
|
---|
9 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
---|
10 |
|
---|
11 | /**
|
---|
12 | * Unit tests of {@link TileSelection} class.
|
---|
13 | */
|
---|
14 | class TileSelectionTest {
|
---|
15 |
|
---|
16 | /**
|
---|
17 | * Setup tests
|
---|
18 | */
|
---|
19 | @RegisterExtension
|
---|
20 | @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
|
---|
21 | public JOSMTestRules test = new JOSMTestRules().preferences();
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * Test for {@link TileSelection#TileSelection}.
|
---|
25 | */
|
---|
26 | @Test
|
---|
27 | void testTileSelection() {
|
---|
28 | TileSelection sel = new TileSelection();
|
---|
29 | sel.addGui(null);
|
---|
30 | sel.setDownloadArea(null);
|
---|
31 | sel.setDownloadArea(new Bounds(0, 0, 1, 1));
|
---|
32 | }
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.