--- old/test/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderFactoryTest.java 2016-07-21 20:33:26.042027778 -0700 +++ new/test/javax/xml/jaxp/functional/org/xml/sax/ptests/XMLReaderFactoryTest.java 2016-07-21 20:33:25.843027778 -0700 @@ -1,5 +1,5 @@ /* - * 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 @@ -22,8 +22,9 @@ */ 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; @@ -31,7 +32,8 @@ /** * 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. @@ -49,7 +51,7 @@ */ @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"));