Changeset 17275 in josm for trunk/test/unit/org/openstreetmap/josm/actions/downloadtasks/ChangesetQueryTaskTest.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/actions/downloadtasks/ChangesetQueryTaskTest.java
r10945 r17275 2 2 package org.openstreetmap.josm.actions.downloadtasks; 3 3 4 import static org.junit.Assert.assertNotNull; 4 import static org.junit.jupiter.api.Assertions.assertNotNull; 5 import static org.junit.jupiter.api.Assertions.assertThrows; 5 6 6 7 import java.awt.Component; 7 8 8 import org.junit. Rule;9 import org.junit. Test;9 import org.junit.jupiter.api.Test; 10 import org.junit.jupiter.api.extension.RegisterExtension; 10 11 import org.openstreetmap.josm.io.ChangesetQuery; 11 12 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 16 17 * Unit tests for class {@link ChangesetQueryTask}. 17 18 */ 18 publicclass ChangesetQueryTaskTest {19 class ChangesetQueryTaskTest { 19 20 20 21 /** 21 22 * Setup test. 22 23 */ 23 @R ule24 @RegisterExtension 24 25 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD") 25 26 public JOSMTestRules test = new JOSMTestRules(); … … 29 30 */ 30 31 @Test 31 publicvoid testChangesetQueryTask() {32 void testChangesetQueryTask() { 32 33 Component parent = new Component() { 33 34 // empty component … … 39 40 * Unit test of {@code ChangesetQueryTask#ChangesetQueryTask} - null parent. 40 41 */ 41 @Test (expected = IllegalArgumentException.class)42 publicvoid testChangesetQueryTaskNullParent() {43 new ChangesetQueryTask(new ChangesetQuery());42 @Test 43 void testChangesetQueryTaskNullParent() { 44 assertThrows(IllegalArgumentException.class, () -> new ChangesetQueryTask(new ChangesetQuery())); 44 45 } 45 46 }
Note:
See TracChangeset
for help on using the changeset viewer.