< prev index next >

test/sun/util/calendar/zi/TestZoneInfo310.java

Print this page




   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  *@bug 8007572 8008161
  27  *@summary Test whether the TimeZone generated from JSR310 tzdb is the same
  28  *as the one from the tz data from javazic

  29  */
  30 
  31 import java.io.File;
  32 import java.lang.reflect.*;
  33 import java.nio.file.*;
  34 import java.util.*;
  35 import java.util.regex.*;
  36 import java.time.zone.*;
  37 import java.time.ZoneId;
  38 
  39 public class TestZoneInfo310 {
  40 
  41     public static void main(String[] args) throws Throwable {
  42 
  43         String TESTDIR = System.getProperty("test.dir", ".");
  44         String SRCDIR = System.getProperty("test.src", ".");
  45         String tzdir = SRCDIR + File.separator + "tzdata";
  46         String tzfiles = "africa antarctica asia australasia europe northamerica pacificnew southamerica backward etcetera systemv";
  47         String jdk_tzdir = SRCDIR + File.separator + "tzdata_jdk";
  48         String jdk_tzfiles = "gmt jdk11_backward";




   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  *@bug 8007572 8008161
  27  *@summary Test whether the TimeZone generated from JSR310 tzdb is the same
  28  *as the one from the tz data from javazic
  29  * @modules java.base/sun.util.calendar
  30  */
  31 
  32 import java.io.File;
  33 import java.lang.reflect.*;
  34 import java.nio.file.*;
  35 import java.util.*;
  36 import java.util.regex.*;
  37 import java.time.zone.*;
  38 import java.time.ZoneId;
  39 
  40 public class TestZoneInfo310 {
  41 
  42     public static void main(String[] args) throws Throwable {
  43 
  44         String TESTDIR = System.getProperty("test.dir", ".");
  45         String SRCDIR = System.getProperty("test.src", ".");
  46         String tzdir = SRCDIR + File.separator + "tzdata";
  47         String tzfiles = "africa antarctica asia australasia europe northamerica pacificnew southamerica backward etcetera systemv";
  48         String jdk_tzdir = SRCDIR + File.separator + "tzdata_jdk";
  49         String jdk_tzfiles = "gmt jdk11_backward";


< prev index next >