Open GoogleCodeExporter opened 9 years ago
attached rule file has commented out TEXTUNIT rules. Uncomment to reproduce bug. Here is unit test: {{{ @Test public void testCdataSubfilterEmptyElement() throws Exception { URL configUrl = getClass().getResource("/cdataAsHTML.yml"); URL inputUrl = getClass().getResource("/empty_element.xml"); RawDocument rd = new RawDocument(inputUrl.toURI(), "UTF-8", locEN); List<Event> events = getEvents(filter, rd, configUrl); assertEquals("foobar", FilterTestDriver.getTextUnit(events, 1).getSource().toString()); // Make sure there's no "bonus" segment containing the placeholder that // references the CDATA assertNull(FilterTestDriver.getTextUnit(events, 2)); } }}}
Original issue reported on code.google.com by jhargrav...@gmail.com on 20 Jan 2015 at 5:51
jhargrav...@gmail.com
Attachments:
Original issue reported on code.google.com by
jhargrav...@gmail.com
on 20 Jan 2015 at 5:51Attachments: