< prev index next >
test/jdk/sun/security/tools/jarsigner/warnings/NoTimestampTest.java
Print this page
*** 20,35 ****
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
import java.util.Date;
import jdk.testlibrary.OutputAnalyzer;
import jdk.test.lib.util.JarUtils;
/**
* @test
! * @bug 8024302 8026037
* @summary Checks warnings if -tsa and -tsacert options are not specified
* @library /lib/testlibrary /test/lib ../
* @build jdk.test.lib.util.JarUtils
* @run main NoTimestampTest
*/
--- 20,36 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
import java.util.Date;
+ import java.util.Locale;
import jdk.testlibrary.OutputAnalyzer;
import jdk.test.lib.util.JarUtils;
/**
* @test
! * @bug 8024302 8026037 8196213
* @summary Checks warnings if -tsa and -tsacert options are not specified
* @library /lib/testlibrary /test/lib ../
* @build jdk.test.lib.util.JarUtils
* @run main NoTimestampTest
*/
*** 38,49 ****
--- 39,58 ----
/**
* The test signs and verifies a jar file without -tsa and -tsacert options,
* and checks that proper warnings are shown.
*/
public static void main(String[] args) throws Throwable {
+ Locale reservedLocale = Locale.getDefault();
+ Locale.setDefault(Locale.US);
+
+ try {
NoTimestampTest test = new NoTimestampTest();
test.start();
+ } finally {
+ // Restore the reserved locale
+ Locale.setDefault(reservedLocale);
+ }
}
private void start() throws Throwable {
String timezone = System.getProperty("user.timezone");
System.out.println(String.format("Timezone = %s", timezone));
< prev index next >