--- a/test/jdk/sun/security/tools/keytool/DeprecateKeyalg.java Fri Nov 30 23:46:20 2018 -0800
+++ b/test/jdk/sun/security/tools/keytool/DeprecateKeyalg.java Sat Dec 01 21:58:05 2018 +0800
@@ -26,7 +26,7 @@
/**
* @test
- * @bug 8212003
+ * @bug 8212003 8214179
* @summary Deprecating the default keytool -keyalg option
* @library /test/lib
*/
@@ -55,6 +55,15 @@
.shouldContain("Generated")
.shouldContain("default key algorithm (DES)")
.shouldContain("-keyalg option must be specified");
+
+ kt("-genkeypair -alias e -dname CN=e -keyalg EC -groupname brainpoolP256r1")
+ .shouldContain("Generating 256 bit EC (brainpoolP256r1) key pair");
+
+ kt("-genkeypair -alias f -dname CN=f -keyalg EC")
+ .shouldContain("Generating 256 bit EC (secp256r1) key pair");
+
+ kt("-genkeypair -alias g -dname CN=g -keyalg EC -keysize 384")
+ .shouldContain("Generating 384 bit EC (secp384r1) key pair");
}
private static OutputAnalyzer kt(String cmd) throws Throwable {