< prev index next >
jdk/test/javax/xml/jaxp/common/8032908/XSLT.java
Print this page
*** 21,33 ****
* questions.
*/
/**
* @test
! * @bug 8032908
* @summary Test if Node.getTextContent() function correctly returns children
! * content
* @compile TestFunc.java XSLT.java
* @run main/othervm XSLT
*/
import java.io.ByteArrayOutputStream;
import javax.xml.transform.Transformer;
--- 21,34 ----
* questions.
*/
/**
* @test
! * @bug 8032908 8081392
* @summary Test if Node.getTextContent() function correctly returns children
! * content and also check that Node.getNodeValue() returns null value for
! * Element nodes
* @compile TestFunc.java XSLT.java
* @run main/othervm XSLT
*/
import java.io.ByteArrayOutputStream;
import javax.xml.transform.Transformer;
*** 38,48 ****
public class XSLT {
static final String XMLTOTRANSFORM = "/in.xml";
static final String XSLTRANSFORMER = "/test.xsl";
! static final String EXPECTEDRESULT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>ABCDEFG";
public static void main(String[] args) throws TransformerException {
ByteArrayOutputStream resStream = new ByteArrayOutputStream();
TransformerFactory trf = TransformerFactory.newInstance();
Transformer tr = trf.newTransformer(new StreamSource(System.getProperty("test.src", ".") + XSLTRANSFORMER));
--- 39,49 ----
public class XSLT {
static final String XMLTOTRANSFORM = "/in.xml";
static final String XSLTRANSFORMER = "/test.xsl";
! static final String EXPECTEDRESULT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>ABCDEFG:null";
public static void main(String[] args) throws TransformerException {
ByteArrayOutputStream resStream = new ByteArrayOutputStream();
TransformerFactory trf = TransformerFactory.newInstance();
Transformer tr = trf.newTransformer(new StreamSource(System.getProperty("test.src", ".") + XSLTRANSFORMER));
< prev index next >