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

Last change on this file since 10962 was 10962, checked in by Don-vip, 8 years ago

improve unit tests

  • Property svn:eol-style set to native
File size: 1.1 KB
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.Rule;
7import org.junit.Test;
8import org.openstreetmap.josm.data.osm.Changeset;
9import org.openstreetmap.josm.data.osm.DataSet;
10import org.openstreetmap.josm.gui.layer.OsmDataLayer;
11import org.openstreetmap.josm.testutils.JOSMTestRules;
12
13import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
14
15/**
16 * Unit tests of {@link UploadPrimitivesTask} class.
17 */
18public class UploadPrimitivesTaskTest {
19
20 /**
21 * Setup tests
22 */
23 @Rule
24 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
25 public JOSMTestRules test = new JOSMTestRules();
26
27 /**
28 * Test of {@link UploadPrimitivesTask#UploadPrimitivesTask}.
29 */
30 @Test
31 public void testUploadPrimitivesTask() {
32 assertNotNull(new UploadPrimitivesTask(
33 new UploadStrategySpecification(),
34 new OsmDataLayer(new DataSet(), null, null),
35 null,
36 new Changeset()));
37 }
38}
Note: See TracBrowser for help on using the repository browser.