1 /* 2 * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 package org.xml.sax.ptests; 24 25 import java.util.Enumeration; 26 import jaxp.library.JAXPBaseTest; 27 import static org.testng.Assert.assertEquals; 28 import static org.testng.Assert.assertNull; 29 import org.testng.annotations.Test; 30 import org.xml.sax.helpers.NamespaceSupport; 31 32 /** 33 * Unit test cases for NamespaceSupport API 34 */ 35 public class NSSupportTest extends JAXPBaseTest { 36 /** 37 * Empty prefix name. 38 */ 39 private final static String EMPTY_PREFIX = ""; 40 41 /** 42 * A URI for W3 1999 HTML sepc. 43 */ 44 private final static String W3_URI = "http://www.w3.org/1999/xhtml"; 45 46 /** 47 * A prefix named "dc". 48 */ 49 private final static String DC_PREFIX = "dc"; 50 51 /** 52 * A URI for "http://www.purl.org/dc#". 53 */ 54 private final static String PURL_URI = "http://www.purl.org/dc#"; 55 | 1 /* 2 * Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 package org.xml.sax.ptests; 24 25 import static org.testng.Assert.assertEquals; 26 import static org.testng.Assert.assertNull; 27 28 import java.util.Enumeration; 29 30 import org.testng.annotations.Listeners; 31 import org.testng.annotations.Test; 32 import org.xml.sax.helpers.NamespaceSupport; 33 34 /** 35 * Unit test cases for NamespaceSupport API 36 */ 37 @Listeners({jaxp.library.BasePolicy.class}) 38 public class NSSupportTest { 39 /** 40 * Empty prefix name. 41 */ 42 private final static String EMPTY_PREFIX = ""; 43 44 /** 45 * A URI for W3 1999 HTML sepc. 46 */ 47 private final static String W3_URI = "http://www.w3.org/1999/xhtml"; 48 49 /** 50 * A prefix named "dc". 51 */ 52 private final static String DC_PREFIX = "dc"; 53 54 /** 55 * A URI for "http://www.purl.org/dc#". 56 */ 57 private final static String PURL_URI = "http://www.purl.org/dc#"; 58 |