< prev index next >

test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/NullUriDetectionTest.java

Print this page

        

*** 26,41 **** --- 26,43 ---- import java.io.StringWriter; import javax.xml.stream.XMLOutputFactory; import javax.xml.stream.XMLStreamWriter; + import org.testng.annotations.Listeners; import org.testng.annotations.Test; /* * @bug 6391922 * @summary Test XMLStreamWriter can writeDefaultNamespace(null). */ + @Listeners({jaxp.library.BasePolicy.class}) public class NullUriDetectionTest { @Test public void test1() throws Exception { XMLOutputFactory xof = XMLOutputFactory.newInstance(); xof.setProperty(XMLOutputFactory.IS_REPAIRING_NAMESPACES, Boolean.TRUE);
< prev index next >