source: josm/trunk/test/unit/org/openstreetmap/josm/data/osm/event/PrimitivesAddedEventTest.java@ 11928

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

improve unit tests, javadoc

  • Property svn:eol-style set to native
File size: 851 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm.event;
3
4import static org.junit.Assert.assertEquals;
5
6import java.util.Collections;
7
8import org.junit.Rule;
9import org.junit.Test;
10import org.openstreetmap.josm.testutils.JOSMTestRules;
11
12import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
13
14/**
15 * Unit tests of {@link PrimitivesAddedEvent} class.
16 */
17public class PrimitivesAddedEventTest {
18
19 /**
20 * Setup test.
21 */
22 @Rule
23 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")
24 public JOSMTestRules test = new JOSMTestRules();
25
26 /**
27 * Unit test of {@link PrimitivesAddedEvent#toString}.
28 */
29 @Test
30 public void testToString() {
31 assertEquals("PRIMITIVES_ADDED", new PrimitivesAddedEvent(null, Collections.emptyList(), false).toString());
32 }
33}
Note: See TracBrowser for help on using the repository browser.