test/jdk/sun/security/tools/keytool/ProbingFailure.java
changeset 59104 046e4024e55a
parent 52996 2457d862a646
equal deleted inserted replaced
59103:4a09d4df104c 59104:046e4024e55a
     1 /*
     1 /*
     2  * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2018, 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.
    51 public class ProbingFailure {
    51 public class ProbingFailure {
    52 
    52 
    53     public static void main(String[] args) throws Exception {
    53     public static void main(String[] args) throws Exception {
    54 
    54 
    55         // genkeypair
    55         // genkeypair
    56         kt("-genkeypair -keystore mks -alias a -dname CN=A -storetype MYKS")
    56         kt("-genkeypair -keystore mks -alias a -dname CN=A -keyalg DSA -storetype MYKS")
    57                 .shouldHaveExitValue(0);
    57                 .shouldHaveExitValue(0);
    58 
    58 
    59         // list
    59         // list
    60         kt("-list -keystore mks -storetype MYKS")
    60         kt("-list -keystore mks -storetype MYKS")
    61                 .shouldHaveExitValue(0);
    61                 .shouldHaveExitValue(0);