Changeset 13274 in josm for trunk/test/unit/org/openstreetmap
- Timestamp:
- 2018-01-03T23:17:07+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/io/imagery/WMSImageryTest.java
r11974 r13274 3 3 4 4 import static org.junit.Assert.assertEquals; 5 import static org.junit.Assert.assertTrue; 6 7 import java.io.IOException; 8 import java.io.InputStream; 5 9 6 10 import org.junit.Rule; 7 11 import org.junit.Test; 12 import org.openstreetmap.josm.TestUtils; 8 13 import org.openstreetmap.josm.io.imagery.WMSImagery.WMSGetCapabilitiesException; 9 14 import org.openstreetmap.josm.testutils.JOSMTestRules; … … 36 41 assertEquals("bar", exc.getIncomingData()); 37 42 } 43 44 /** 45 * Non-regression test for bug #15730. 46 * @throws IOException if any I/O error occurs 47 * @throws WMSGetCapabilitiesException never 48 */ 49 @Test 50 public void testTicket15730() throws IOException, WMSGetCapabilitiesException { 51 try (InputStream is = TestUtils.getRegressionDataStream(15730, "capabilities.xml")) { 52 WMSImagery wms = new WMSImagery(); 53 wms.parseCapabilities(null, is); 54 assertEquals(1, wms.getLayers().size()); 55 assertTrue(wms.getLayers().get(0).abstr.startsWith("South Carolina NAIP Imagery 2017 Resolution: 100CM ")); 56 } 57 } 38 58 }
Note:
See TracChangeset
for help on using the changeset viewer.