< prev index next >

test/javax/xml/jaxp/functional/javax/xml/transform/ptests/Bug6384418Test.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 21,30 **** --- 21,32 ---- * questions. */ package javax.xml.transform.ptests; + import static javax.xml.transform.ptests.TransformerTestConst.XML_DIR; + import java.io.ByteArrayOutputStream; import java.io.File; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory;
*** 32,52 **** import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; import javax.xml.transform.stream.StreamSource; ! import jaxp.library.JAXPFileBaseTest; ! import static javax.xml.transform.ptests.TransformerTestConst.XML_DIR; ! import org.testng.annotations.Test; import org.w3c.dom.Document; /* * @bug 6384418 * @summary verify the transforming won't throw any exception */ ! public class Bug6384418Test extends JAXPFileBaseTest { @Test public void test() throws Exception { TransformerFactory tfactory = TransformerFactory.newInstance(); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); --- 34,53 ---- import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; import javax.xml.transform.stream.StreamSource; ! import org.testng.annotations.Listeners; import org.testng.annotations.Test; import org.w3c.dom.Document; /* * @bug 6384418 * @summary verify the transforming won't throw any exception */ ! @Listeners({jaxp.library.FilePolicy.class}) ! public class Bug6384418Test { @Test public void test() throws Exception { TransformerFactory tfactory = TransformerFactory.newInstance(); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
< prev index next >