source: josm/trunk/test/unit/org/openstreetmap/josm/gui/io/UploadPrimitivesTaskTest.java@ 9909

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.
2package org.openstreetmap.josm.gui.io;
3
4import static org.junit.Assert.assertNotNull;
5
6import org.junit.BeforeClass;
7import org.junit.Test;
8import org.openstreetmap.josm.JOSMFixture;
9import org.openstreetmap.josm.data.osm.Changeset;
10import org.openstreetmap.josm.data.osm.DataSet;
11import org.openstreetmap.josm.gui.layer.OsmDataLayer;
12
13/**
14 * Unit tests of {@link UploadPrimitivesTask} class.
15 */
16public 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.