Changeset 10937 in josm for trunk/test/functional/org
- Timestamp:
- 2016-09-03T12:24:18+02:00 (8 years ago)
- Location:
- trunk/test/functional/org/openstreetmap/josm/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/functional/org/openstreetmap/josm/io/MultiFetchServerObjectReaderTest.java
r10758 r10937 6 6 import static org.junit.Assert.assertNotNull; 7 7 import static org.junit.Assert.assertTrue; 8 import static org.junit.Assert.fail;9 8 10 9 import java.io.File; … … 40 39 import org.openstreetmap.josm.gui.progress.NullProgressMonitor; 41 40 41 /** 42 * Unit tests of {@link MultiFetchServerObjectReader}. 43 */ 42 44 public class MultiFetchServerObjectReaderTest { 43 45 private static Logger logger = Logger.getLogger(MultiFetchServerObjectReader.class.getName()); … … 138 140 } 139 141 142 /** 143 * Setup test. 144 * @throws Exception if an error occurs 145 */ 140 146 @BeforeClass 141 public static void init() throws OsmTransferException {147 public static void init() throws Exception { 142 148 logger.info("initializing ..."); 143 149 JOSMFixture.createFunctionalTestFixture().init(); … … 177 183 w.footer(); 178 184 } 179 } catch (IOException e) {180 fail(MessageFormat.format("failed to open file ''{0}'' for writing", dataSetCacheOutputFile.toString()));181 185 } 182 186 } … … 200 204 } 201 205 206 /** 207 * Test to multi-get 10 nodes. 208 * @throws OsmTransferException if an error occurs 209 */ 202 210 @Test 203 211 public void testMultiGet10Nodes() throws OsmTransferException { … … 217 225 } 218 226 227 /** 228 * Test to multi-get 10 ways. 229 * @throws OsmTransferException if an error occurs 230 */ 219 231 @Test 220 232 public void testMultiGet10Ways() throws OsmTransferException { … … 235 247 } 236 248 249 /** 250 * Test to multi-get 10 relations. 251 * @throws OsmTransferException if an error occurs 252 */ 237 253 @Test 238 254 public void testMultiGet10Relations() throws OsmTransferException { … … 253 269 } 254 270 271 /** 272 * Test to multi-get 800 nodes. 273 * @throws OsmTransferException if an error occurs 274 */ 255 275 @Test 256 276 public void testMultiGet800Nodes() throws OsmTransferException { … … 270 290 } 271 291 292 /** 293 * Test to multi-get non-existing node. 294 * @throws OsmTransferException if an error occurs 295 */ 272 296 @Test 273 297 public void testMultiGetWithNonExistingNode() throws OsmTransferException { -
trunk/test/functional/org/openstreetmap/josm/io/OsmServerBackreferenceReaderTest.java
r10758 r10937 151 151 * @throws OsmTransferException if something goes wrong 152 152 * @throws CyclicUploadDependencyException if a cyclic dependency is detected 153 * @throws IOException if an I/O error occurs 153 154 */ 154 155 @BeforeClass 155 public static void setUpBeforeClass() throws OsmTransferException, CyclicUploadDependencyException {156 public static void setUpBeforeClass() throws OsmTransferException, CyclicUploadDependencyException, IOException { 156 157 logger.info("initializing ..."); 157 158 … … 196 197 w.footer(); 197 198 } 198 } catch (IOException e) {199 fail(MessageFormat.format("failed to open file ''{0}'' for writing", dataSetCacheOutputFile.toString()));200 199 } 201 200 } … … 219 218 } 220 219 220 /** 221 * Test reading references for a node. 222 * @throws OsmTransferException if an error occurs 223 */ 221 224 @Test 222 225 public void testBackreferenceForNode() throws OsmTransferException { … … 272 275 } 273 276 277 /** 278 * Test reading full references for a node. 279 * @throws OsmTransferException if an error occurs 280 */ 274 281 @Test 275 282 public void testBackreferenceForNodeFull() throws OsmTransferException { … … 316 323 } 317 324 325 /** 326 * Test reading references for a way. 327 * @throws OsmTransferException if an error occurs 328 */ 318 329 @Test 319 330 public void testBackreferenceForWay() throws OsmTransferException { … … 356 367 } 357 368 369 /** 370 * Test reading full references for a way. 371 * @throws OsmTransferException if an error occurs 372 */ 358 373 @Test 359 374 public void testBackreferenceForWayFull() throws OsmTransferException { … … 390 405 } 391 406 407 /** 408 * Test reading references for a relation. 409 * @throws OsmTransferException if an error occurs 410 */ 392 411 @Test 393 412 public void testBackreferenceForRelation() throws OsmTransferException { … … 505 524 } 506 525 526 /** 527 * Test reading full references for a relation. 528 * @throws OsmTransferException if an error occurs 529 */ 507 530 @Test 508 531 public void testBackreferenceForRelationFull() throws OsmTransferException {
Note:
See TracChangeset
for help on using the changeset viewer.