< prev index next >

test/jdk/sun/net/idn/TestStringPrep.java

Print this page
rev 57619 : imported patch 8174270
   1 /*
   2  * Copyright (c) 2005, 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 
  24 /*
  25  * @test
  26  * @summary Unit test for sun.net.idn.Punycode
  27  * @bug 4737170 8060097
  28  * @modules java.base/sun.net.idn:+open
  29  *          java.base/sun.text.normalizer
  30  * @library .
  31  * @compile -XDignore.symbol.file TestStringPrep.java NFS4StringPrep.java
  32  *     TestData.java
  33  * @run main/othervm -ea TestStringPrep
  34  * @author Edward Wang
  35  */
  36 /*
  37  *******************************************************************************
  38  * Copyright (C) 2003-2004, International Business Machines Corporation and    *
  39  * others. All Rights Reserved.                                                *
  40  *******************************************************************************
  41 */
  42 
  43 import java.text.ParseException;
  44 import java.io.InputStream;
  45 import java.util.Locale;
  46 
  47 import sun.net.idn.StringPrep;
  48 import sun.text.normalizer.UCharacterIterator;
  49 
  50 public class TestStringPrep {
  51     public static void main(String[] args) throws Exception {
  52         TestNFS4MixedPrep();
  53         TestCISPrep();
  54         TestCSPrep();
  55         TestNamePrepConformance();
  56     }
  57     /*
  58        There are several special identifiers ("who") which need to be
  59        understood universally, rather than in the context of a particular
  60        DNS domain.  Some of these identifiers cannot be understood when an
  61        NFS client accesses the server, but have meaning when a local process
  62        accesses the file.  The ability to display and modify these
  63        permissions is permitted over NFS, even if none of the access methods
  64        on the server understands the identifiers.
  65 
  66         Who                    Description
  67        _______________________________________________________________
  68 


   1 /*
   2  * Copyright (c) 2005, 2020, 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 
  24 /*
  25  * @test
  26  * @summary Unit test for jdk.internal.icu.text.StringPrep
  27  * @bug 4737170 8060097 8174270
  28  * @modules java.base/jdk.internal.icu.text

  29  * @library .
  30  * @compile -XDignore.symbol.file TestStringPrep.java NFS4StringPrep.java
  31  *     TestData.java
  32  * @run main/othervm -ea TestStringPrep
  33  * @author Edward Wang
  34  */
  35 /*
  36  *******************************************************************************
  37  * Copyright (C) 2003-2004, International Business Machines Corporation and    *
  38  * others. All Rights Reserved.                                                *
  39  *******************************************************************************
  40 */
  41 
  42 import java.text.ParseException;
  43 import java.io.InputStream;
  44 import java.util.Locale;
  45 
  46 import jdk.internal.icu.text.StringPrep;
  47 import jdk.internal.icu.text.UCharacterIterator;
  48 
  49 public class TestStringPrep {
  50     public static void main(String[] args) throws Exception {
  51         TestNFS4MixedPrep();
  52         TestCISPrep();
  53         TestCSPrep();
  54         TestNamePrepConformance();
  55     }
  56     /*
  57        There are several special identifiers ("who") which need to be
  58        understood universally, rather than in the context of a particular
  59        DNS domain.  Some of these identifiers cannot be understood when an
  60        NFS client accesses the server, but have meaning when a local process
  61        accesses the file.  The ability to display and modify these
  62        permissions is permitted over NFS, even if none of the access methods
  63        on the server understands the identifiers.
  64 
  65         Who                    Description
  66        _______________________________________________________________
  67 


< prev index next >