< prev index next >

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

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
+ * 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.

@@ -31,17 +31,19 @@
 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 4992793
  * @summary Test XPath.evaluate(expression,source,returnType) throws NPE if expression is null.
  */
+@Listeners({jaxp.library.BasePolicy.class})
 public class Bug4992793 {
 
 
     // test for XPath.evaluate(java.lang.String expression, InputSource source)
     // - default returnType is String
< prev index next >