Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.io;
|
---|
3 |
|
---|
4 | import static org.junit.jupiter.api.Assertions.assertNotNull;
|
---|
5 |
|
---|
6 | import org.junit.jupiter.api.extension.RegisterExtension;
|
---|
7 | import org.junit.jupiter.api.Test;
|
---|
8 | import org.openstreetmap.josm.data.osm.Changeset;
|
---|
9 | import org.openstreetmap.josm.data.osm.DataSet;
|
---|
10 | import org.openstreetmap.josm.gui.layer.OsmDataLayer;
|
---|
11 | import org.openstreetmap.josm.io.UploadStrategySpecification;
|
---|
12 | import org.openstreetmap.josm.testutils.JOSMTestRules;
|
---|
13 |
|
---|
14 | import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
|
---|
15 |
|
---|
16 | /**
|
---|
17 | * Unit tests of {@link UploadPrimitivesTask} class.
|
---|
18 | */
|
---|
19 | class UploadPrimitivesTaskTest {
|
---|
20 |
|
---|
21 | /**
|
---|
22 | * Setup tests
|
---|
23 | */
|
---|
24 | @RegisterExtension
|
---|
25 | @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
|
---|
26 | public JOSMTestRules test = new JOSMTestRules();
|
---|
27 |
|
---|
28 | /**
|
---|
29 | * Test of {@link UploadPrimitivesTask#UploadPrimitivesTask}.
|
---|
30 | */
|
---|
31 | @Test
|
---|
32 | void testUploadPrimitivesTask() {
|
---|
33 | assertNotNull(new UploadPrimitivesTask(
|
---|
34 | new UploadStrategySpecification(),
|
---|
35 | new OsmDataLayer(new DataSet(), null, null),
|
---|
36 | null,
|
---|
37 | new Changeset()));
|
---|
38 | }
|
---|
39 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.