< prev index next >

test/javax/xml/jaxp/unittest/xpath/Bug4992788.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2014, 2015, 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. --- 1,7 ---- /* ! * Copyright (c) 2014, 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.
*** 29,45 **** --- 29,47 ---- import javax.xml.xpath.XPathConstants; import javax.xml.xpath.XPathFactory; import javax.xml.xpath.XPathFactoryConfigurationException; import org.testng.Assert; + import org.testng.annotations.Listeners; import org.testng.annotations.Test; import org.xml.sax.InputSource; /* * @bug 4992788 * @summary Test XPath.evaluate(expression,source,returnType) throws NPE if source is null. */ + @Listeners({jaxp.library.BasePolicy.class}) public class Bug4992788 { private static String expression = "/widgets/widget[@name='a']/@quantity"; // test for XPath.evaluate(java.lang.String expression, InputSource source)
< prev index next >