Last change
on this file since 9909 was 9816, checked in by Don-vip, 8 years ago |
add more unit tests, javadoc, fix code style issues
|
-
Property svn:eol-style
set to
native
|
File size:
1003 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.gui.io;
|
---|
3 |
|
---|
4 | import static org.junit.Assert.assertNotNull;
|
---|
5 |
|
---|
6 | import org.junit.BeforeClass;
|
---|
7 | import org.junit.Test;
|
---|
8 | import org.openstreetmap.josm.JOSMFixture;
|
---|
9 | import org.openstreetmap.josm.data.osm.Changeset;
|
---|
10 | import org.openstreetmap.josm.data.osm.DataSet;
|
---|
11 | import org.openstreetmap.josm.gui.layer.OsmDataLayer;
|
---|
12 |
|
---|
13 | /**
|
---|
14 | * Unit tests of {@link UploadPrimitivesTask} class.
|
---|
15 | */
|
---|
16 | public class UploadPrimitivesTaskTest {
|
---|
17 |
|
---|
18 | /**
|
---|
19 | * Setup tests
|
---|
20 | */
|
---|
21 | @BeforeClass
|
---|
22 | public static void setUpBeforeClass() {
|
---|
23 | JOSMFixture.createUnitTestFixture().init();
|
---|
24 | }
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * Test of {@link UploadPrimitivesTask#UploadPrimitivesTask}.
|
---|
28 | */
|
---|
29 | @Test
|
---|
30 | public void testUploadPrimitivesTask() {
|
---|
31 | assertNotNull(new UploadPrimitivesTask(
|
---|
32 | new UploadStrategySpecification(),
|
---|
33 | new OsmDataLayer(new DataSet(), null, null),
|
---|
34 | null,
|
---|
35 | new Changeset()));
|
---|
36 | }
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.