Changeset 18853 in josm for trunk/test/unit/org/openstreetmap/josm/data/APIDataSetTest.java
- Timestamp:
- 2023-10-04T00:03:40+02:00 (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/data/APIDataSetTest.java
r17275 r18853 4 4 import static org.junit.jupiter.api.Assertions.assertEquals; 5 5 import static org.junit.jupiter.api.Assertions.assertFalse; 6 import static org.junit.jupiter.api.Assertions.assertThrows; 6 7 import static org.junit.jupiter.api.Assertions.assertTrue; 7 import static org.junit.jupiter.api.Assertions.fail;8 8 9 9 import java.util.List; 10 10 11 import org.junit.jupiter.api.extension.RegisterExtension;12 11 import org.junit.jupiter.api.Test; 13 12 import org.openstreetmap.josm.data.conflict.ConflictCollection; … … 19 18 import org.openstreetmap.josm.data.osm.RelationMember; 20 19 import org.openstreetmap.josm.data.osm.Way; 21 import org.openstreetmap.josm.testutils.JOSMTestRules;22 23 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;24 20 25 21 /** … … 27 23 */ 28 24 class APIDataSetTest { 29 30 /**31 * Setup test.32 */33 @RegisterExtension34 @SuppressFBWarnings(value = "URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD")35 public JOSMTestRules test = new JOSMTestRules();36 37 25 @Test 38 26 void testOneNewRelationOnly() throws CyclicUploadDependencyException { … … 250 238 APIDataSet apiDataSet = new APIDataSet(); 251 239 apiDataSet.init(ds); 252 try { 253 apiDataSet.adjustRelationUploadOrder(); 254 fail("expected cyclic upload dependency exception not thrown"); 255 } catch (CyclicUploadDependencyException e) { 256 System.out.println(e); 257 } 240 assertThrows(CyclicUploadDependencyException.class, apiDataSet::adjustRelationUploadOrder); 258 241 } 259 242 }
Note:
See TracChangeset
for help on using the changeset viewer.