< prev index next >
test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6847819Test.java
Print this page
*** 21,30 ****
--- 21,31 ----
* questions.
*/
package stream.XMLStreamReaderTest;
+ import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
import org.testng.Assert;
import java.io.StringReader;
import javax.xml.stream.XMLInputFactory;
*** 32,41 ****
--- 33,43 ----
/*
* @bug 6847819
* @summary Test StAX parser shall throw XMLStreamException for illegal xml declaration.
*/
+ @Listeners({jaxp.library.BasePolicy.class})
public class Bug6847819Test {
@Test
public void testIllegalDecl() throws XMLStreamException {
String xml = "<?xml ?><root>abc]]>xyz</root>";
< prev index next >