< prev index next >

test/javax/xml/jaxp/functional/org/xml/sax/ptests/NSSupportTest.java

Print this page




   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 static org.testng.Assert.assertEquals;
  27 import static org.testng.Assert.assertNull;
  28 import org.testng.annotations.Test;
  29 import org.xml.sax.helpers.NamespaceSupport;
  30 
  31 /**
  32  * Unit test cases for NamespaceSupport API
  33  */
  34 public class NSSupportTest {
  35     /**
  36      * Empty prefix name.
  37      */
  38     private final static String EMPTY_PREFIX = "";
  39 
  40     /**
  41      * A URI for W3 1999 HTML sepc.
  42      */
  43     private final static String W3_URI = "http://www.w3.org/1999/xhtml";
  44 
  45     /**
  46      * A prefix named "dc".
  47      */
  48     private final static String DC_PREFIX = "dc";
  49 
  50     /**
  51      * A URI for "http://www.purl.org/dc#".
  52      */
  53     private final static String PURL_URI = "http://www.purl.org/dc#";
  54 




   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 


< prev index next >