--- old/test/javax/xml/jaxp/functional/test/gaptest/Bug4515660.java 2016-07-21 20:33:34.334027778 -0700 +++ new/test/javax/xml/jaxp/functional/test/gaptest/Bug4515660.java 2016-07-21 20:33:34.221027778 -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 @@ -39,10 +39,9 @@ import javax.xml.transform.sax.SAXTransformerFactory; import javax.xml.transform.stream.StreamResult; -import jaxp.library.JAXPBaseTest; - import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; +import org.testng.annotations.Listeners; import org.testng.annotations.Test; import org.xml.sax.InputSource; import org.xml.sax.SAXException; @@ -53,16 +52,17 @@ * @summary verify property org.xml.sax.driver is used by SAXTransformerFactory */ @Test(singleThreaded = true) -public class Bug4515660 extends JAXPBaseTest { +@Listeners({jaxp.library.BasePolicy.class}) +public class Bug4515660 { @BeforeClass public void setSaxDrier() { - setSystemProperty("org.xml.sax.driver", ReaderStub.class.getName()); + System.setProperty("org.xml.sax.driver", ReaderStub.class.getName()); } @AfterClass public void clearSaxDrier() { - setSystemProperty("org.xml.sax.driver", null); + System.clearProperty("org.xml.sax.driver"); } @Test