Changeset 16560 in josm for trunk/test/unit/org
- Timestamp:
- 2020-06-07T17:19:38+02:00 (4 years ago)
- Location:
- trunk/test/unit/org/openstreetmap/josm
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/unit/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetReaderTest.java
r14138 r16560 6 6 import static org.junit.Assert.assertThat; 7 7 import static org.junit.Assert.assertTrue; 8 import static org.junit.Assert.fail; 8 9 9 10 import java.io.IOException; … … 67 68 68 69 /** 70 * Test external entity resolving. 71 * See #19286 72 */ 73 @Test 74 public void testExternalEntityResolving() throws IOException { 75 try { 76 TaggingPresetReader.readAll(TestUtils.getTestDataRoot() + "preset_external_entity.xml", true); 77 fail("Reading a file with external entities should throw an SAXParseException!"); 78 } catch (SAXException e) { 79 String expected = "DOCTYPE is disallowed when the feature \"http://apache.org/xml/features/disallow-doctype-decl\" set to true."; 80 assertEquals(expected, e.getMessage()); 81 } 82 } 83 84 /** 69 85 * Validate internal presets 70 86 * See #9027
Note:
See TracChangeset
for help on using the changeset viewer.