< prev index next >

test/javax/xml/jaxp/unittest/stream/XMLStreamReaderTest/Bug6847819Test.java

Print this page

        

@@ -21,10 +21,11 @@
  * 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,10 +33,11 @@
 
 /*
  * @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 >