< prev index next >
test/javax/xml/jaxp/unittest/stream/XMLStreamWriterTest/EmptyElementTest.java
Print this page
*** 27,41 ****
--- 27,43 ----
import javax.xml.stream.XMLOutputFactory;
import javax.xml.stream.XMLStreamWriter;
import org.testng.Assert;
+ import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
/*
* @summary Test XMLStreamWriter writes namespace and attribute after writeEmptyElement.
*/
+ @Listeners({jaxp.library.BasePolicy.class})
public class EmptyElementTest {
// expected output
private static final String EXPECTED_OUTPUT = "<?xml version=\"1.0\" ?>" + "<hello xmlns=\"http://hello\">"
+ "<world xmlns=\"http://world\" prefixes=\"foo bar\"/>" + "</hello>";
< prev index next >