equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
91 } |
91 } |
92 |
92 |
93 private static void testRun(String property, List<String> javaParam) |
93 private static void testRun(String property, List<String> javaParam) |
94 throws Throwable{ |
94 throws Throwable{ |
95 JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("java"); |
95 JDKToolLauncher launcher = JDKToolLauncher.createUsingTestJDK("java"); |
96 launcher.addToolArg("-cp") |
96 launcher.addToolArg("-ea") |
|
97 .addToolArg("-esa") |
|
98 .addToolArg("-cp") |
97 .addToolArg(Utils.TEST_CLASS_PATH) |
99 .addToolArg(Utils.TEST_CLASS_PATH) |
98 .addToolArg("-Djdk.calendar.japanese.supplemental.era=" + property) |
100 .addToolArg("-Djdk.calendar.japanese.supplemental.era=" + property) |
99 .addToolArg("SupplementalJapaneseEraTest"); |
101 .addToolArg("SupplementalJapaneseEraTest"); |
100 for (String para: javaParam) { |
102 for (String para: javaParam) { |
101 launcher.addToolArg(para); |
103 launcher.addToolArg(para); |