Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/actions/upload/FixDataHookTest.java
- Timestamp:
- 2020-10-28T20:41:00+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/actions/upload/FixDataHookTest.java
r16577 r17275 2 2 package org.openstreetmap.josm.actions.upload; 3 3 4 import static org.junit. Assert.assertEquals;5 import static org.junit. Assert.assertFalse;6 import static org.junit. Assert.assertNotNull;7 import static org.junit. Assert.assertTrue;4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 import static org.junit.jupiter.api.Assertions.assertFalse; 6 import static org.junit.jupiter.api.Assertions.assertNotNull; 7 import static org.junit.jupiter.api.Assertions.assertTrue; 8 8 9 9 import java.util.Arrays; 10 10 import java.util.Collection; 11 11 12 import org.junit. Rule;13 import org.junit. Test;12 import org.junit.jupiter.api.Test; 13 import org.junit.jupiter.api.extension.RegisterExtension; 14 14 import org.openstreetmap.josm.command.PseudoCommand; 15 15 import org.openstreetmap.josm.command.SequenceCommand; … … 27 27 * Unit tests for class {@link FixDataHook}. 28 28 */ 29 publicclass FixDataHookTest {29 class FixDataHookTest { 30 30 31 31 /** 32 32 * Setup test. 33 33 */ 34 @R ule34 @RegisterExtension 35 35 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 36 36 public JOSMTestRules test = new JOSMTestRules().main(); … … 40 40 */ 41 41 @Test 42 publicvoid testCheckUpload() {42 void testCheckUpload() { 43 43 // Empty data set 44 44 UndoRedoHandler.getInstance().clean(); … … 85 85 assertEquals(9, prims.size()); 86 86 for (OsmPrimitive o : Arrays.asList(w1, w2, w3, w4, w5, w6, w7, r1, r2)) { 87 assertTrue( o.toString(),prims.contains(o));87 assertTrue(prims.contains(o), o.toString()); 88 88 } 89 89 Collection<PseudoCommand> cmds = seq.getChildren();
Note:
See TracChangeset
for help on using the changeset viewer.
