--- old/test/javax/xml/jaxp/functional/org/xml/sax/ptests/ParserAdapterTest.java 2016-07-21 20:33:22.371027778 -0700 +++ new/test/javax/xml/jaxp/functional/org/xml/sax/ptests/ParserAdapterTest.java 2016-07-21 20:33:22.208027778 -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,12 +22,16 @@ */ package org.xml.sax.ptests; -import java.io.FileInputStream; -import javax.xml.parsers.SAXParserFactory; -import jaxp.library.JAXPFileReadOnlyBaseTest; import static org.testng.Assert.assertFalse; import static org.testng.Assert.assertNotNull; import static org.testng.Assert.assertTrue; +import static org.xml.sax.ptests.SAXTestConst.XML_DIR; + +import java.io.FileInputStream; + +import javax.xml.parsers.SAXParserFactory; + +import org.testng.annotations.Listeners; import org.testng.annotations.Test; import org.xml.sax.ContentHandler; import org.xml.sax.InputSource; @@ -37,14 +41,14 @@ import org.xml.sax.helpers.ParserAdapter; import org.xml.sax.helpers.XMLFilterImpl; import org.xml.sax.helpers.XMLReaderAdapter; -import static org.xml.sax.ptests.SAXTestConst.XML_DIR; /** * Unit test cases for ParserAdapter API. By default the only features recognized * are namespaces and namespace-prefixes. */ -public class ParserAdapterTest extends JAXPFileReadOnlyBaseTest { +@Listeners({jaxp.library.FilePolicy.class}) +public class ParserAdapterTest { /** * namespaces feature name. */ @@ -234,7 +238,7 @@ * * @throws Exception If any errors occur. */ - @Test(groups = {"readLocalFiles"}, expectedExceptions = SAXException.class) + @Test(expectedExceptions = SAXException.class) public void parse02() throws Exception { try(FileInputStream fis = new FileInputStream(XML_DIR + "invalid.xml")) { InputSource is = new InputSource(fis); @@ -247,7 +251,7 @@ * * @throws Exception If any errors occur. */ - @Test(groups = {"readLocalFiles"}) + @Test public void parse03() throws Exception { try(FileInputStream fis = new FileInputStream(XML_DIR + "correct.xml")) { InputSource is = new InputSource(fis);