Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/command/AddPrimitivesCommandTest.java
- Timestamp:
- 2020-10-28T20:41:00+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/command/AddPrimitivesCommandTest.java
r17240 r17275 2 2 package org.openstreetmap.josm.command; 3 3 4 import static org.junit. Assert.assertArrayEquals;5 import static org.junit. Assert.assertEquals;6 import static org.junit. Assert.assertSame;7 import static org.junit. Assert.assertTrue;4 import static org.junit.jupiter.api.Assertions.assertArrayEquals; 5 import static org.junit.jupiter.api.Assertions.assertEquals; 6 import static org.junit.jupiter.api.Assertions.assertSame; 7 import static org.junit.jupiter.api.Assertions.assertTrue; 8 8 9 9 import java.util.ArrayList; … … 12 12 import java.util.List; 13 13 14 import org.junit. Rule;15 import org.junit. Test;14 import org.junit.jupiter.api.extension.RegisterExtension; 15 import org.junit.jupiter.api.Test; 16 16 import org.openstreetmap.josm.TestUtils; 17 17 import org.openstreetmap.josm.data.coor.LatLon; … … 34 34 * Unit tests of {@link AddPrimitivesCommand} class. 35 35 */ 36 publicclass AddPrimitivesCommandTest {36 class AddPrimitivesCommandTest { 37 37 38 38 /** 39 39 * We need prefs for nodes. 40 40 */ 41 @R ule41 @RegisterExtension 42 42 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 43 43 public JOSMTestRules test = new JOSMTestRules().preferences().i18n(); … … 47 47 */ 48 48 @Test 49 publicvoid testAdd() {49 void testAdd() { 50 50 DataSet ds = new DataSet(); 51 51 … … 61 61 */ 62 62 @Test 63 publicvoid testAddSetSelection() {63 void testAddSetSelection() { 64 64 DataSet ds = new DataSet(); 65 65 … … 77 77 */ 78 78 @Test 79 publicvoid testAddToLayer() {79 void testAddToLayer() { 80 80 DataSet ds1 = new DataSet(); 81 81 DataSet ds2 = new DataSet(); … … 95 95 */ 96 96 @Test 97 publicvoid testAddIgnoresExisting() {97 void testAddIgnoresExisting() { 98 98 DataSet ds = new DataSet(); 99 99 … … 114 114 */ 115 115 @Test 116 publicvoid testDescription() {116 void testDescription() { 117 117 DataSet ds = new DataSet(); 118 118 … … 138 138 */ 139 139 @Test 140 publicvoid testUndo() {140 void testUndo() { 141 141 DataSet ds = new DataSet(); 142 142 … … 172 172 */ 173 173 @Test 174 publicvoid testUndoIgnoresExisting() {174 void testUndoIgnoresExisting() { 175 175 DataSet ds = new DataSet(); 176 176 … … 208 208 */ 209 209 @Test 210 publicvoid testUndoIgnoresExistingAsDeleted() {210 void testUndoIgnoresExistingAsDeleted() { 211 211 DataSet ds = new DataSet(); 212 212 … … 243 243 */ 244 244 @Test 245 publicvoid testUndoIgnoresExistingSameUniqueIdDifferentType() {245 void testUndoIgnoresExistingSameUniqueIdDifferentType() { 246 246 DataSet ds = new DataSet(); 247 247 … … 288 288 */ 289 289 @Test 290 publicvoid testParticipatingPrimitives() {290 void testParticipatingPrimitives() { 291 291 DataSet ds = new DataSet(); 292 292 … … 308 308 */ 309 309 @Test 310 publicvoid testFillModifiedData() {310 void testFillModifiedData() { 311 311 ArrayList<OsmPrimitive> modified = new ArrayList<>(); 312 312 ArrayList<OsmPrimitive> deleted = new ArrayList<>(); … … 364 364 */ 365 365 @Test 366 publicvoid testEqualsContract() {366 void testEqualsContract() { 367 367 TestUtils.assumeWorkingEqualsVerifier(); 368 368 EqualsVerifier.forClass(AddPrimitivesCommand.class).usingGetClass()
Note:
See TracChangeset
for help on using the changeset viewer.