< prev index next >
test/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderFactoryTest.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2003, 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.
@@ -20,20 +20,22 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.xml.sax.ptests;
-import jaxp.library.JAXPBaseTest;
import static org.testng.Assert.assertNotNull;
+
+import org.testng.annotations.Listeners;
import org.testng.annotations.Test;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.XMLReaderFactory;
/**
* Unit test for XMLReaderFactory.createXMLReader API.
*/
-public class XMLReaderFactoryTest extends JAXPBaseTest {
+@Listeners({jaxp.library.BasePolicy.class})
+public class XMLReaderFactoryTest {
/**
* No exception expected when create XMLReader by default.
* @throws org.xml.sax.SAXException when xml reader creation failed.
*/
@Test
@@ -47,11 +49,11 @@
* or com.sun.org.apache.xerces.internal.parsers.SAXParser.
* @throws org.xml.sax.SAXException when xml reader creation failed.
*/
@Test
public void createReader02() throws SAXException {
- setSystemProperty("org.xml.sax.driver",
+ System.setProperty("org.xml.sax.driver",
"com.sun.org.apache.xerces.internal.parsers.SAXParser");
assertNotNull(XMLReaderFactory.
createXMLReader("com.sun.org.apache.xerces.internal.parsers.SAXParser"));
}
< prev index next >