--- old/test/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLInputFactoryNewInstanceTest.java 2016-07-21 20:33:00.826027778 -0700 +++ new/test/javax/xml/jaxp/functional/javax/xml/stream/ptests/XMLInputFactoryNewInstanceTest.java 2016-07-21 20:33:00.700027778 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved. + * 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 @@ -28,15 +28,16 @@ import javax.xml.stream.XMLInputFactory; import jaxp.library.JAXPDataProvider; -import jaxp.library.JAXPBaseTest; import org.testng.annotations.DataProvider; +import org.testng.annotations.Listeners; import org.testng.annotations.Test; /* * @summary Tests for XMLInputFactory.newFactory(factoryId , classLoader) */ -public class XMLInputFactoryNewInstanceTest extends JAXPBaseTest { +@Listeners({jaxp.library.BasePolicy.class}) +public class XMLInputFactoryNewInstanceTest { private static final String XMLINPUT_FACTORY_CLASSNAME = "com.sun.xml.internal.stream.XMLInputFactoryImpl"; private static final String XMLINPUT_FACRORY_ID = "javax.xml.stream.XMLInputFactory"; @@ -54,12 +55,12 @@ */ @Test(dataProvider = "parameters") public void testNewFactory(String factoryId, ClassLoader classLoader) { - setSystemProperty(XMLINPUT_FACRORY_ID, XMLINPUT_FACTORY_CLASSNAME); + System.setProperty(XMLINPUT_FACRORY_ID, XMLINPUT_FACTORY_CLASSNAME); try { XMLInputFactory xif = XMLInputFactory.newFactory(factoryId, classLoader); assertNotNull(xif); } finally { - setSystemProperty(XMLINPUT_FACRORY_ID, null); + System.clearProperty(XMLINPUT_FACRORY_ID); } }