equal
deleted
inserted
replaced
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 7152176 |
26 * @bug 7152176 8164437 |
27 * @summary More krb5 tests |
27 * @summary More krb5 tests |
28 * @compile -XDignore.symbol.file Basic.java |
28 * @compile -XDignore.symbol.file Basic.java |
29 * @run main/othervm Basic |
29 * @run main/othervm |
|
30 * Basic jdk.security.jgss |
|
31 * @run main/othervm --limit-modules java.security.jgss,jdk.security.auth |
|
32 * Basic java.security.jgss |
30 */ |
33 */ |
31 |
34 |
32 import sun.security.jgss.GSSUtil; |
35 import sun.security.jgss.GSSUtil; |
33 |
36 |
34 // The basic krb5 test skeleton you can copy from |
37 // The basic krb5 test skeleton you can copy from |
58 |
61 |
59 s2.startAsClient(OneKDC.BACKEND, GSSUtil.GSS_KRB5_MECH_OID); |
62 s2.startAsClient(OneKDC.BACKEND, GSSUtil.GSS_KRB5_MECH_OID); |
60 b.startAsServer(GSSUtil.GSS_KRB5_MECH_OID); |
63 b.startAsServer(GSSUtil.GSS_KRB5_MECH_OID); |
61 |
64 |
62 Context.handshake(s2, b); |
65 Context.handshake(s2, b); |
|
66 |
|
67 // Bonus test for 8164437. |
|
68 String moduleName = c.x().getClass().getModule().getName(); |
|
69 if (!moduleName.equals(args[0])) { |
|
70 throw new Exception("Expected: " + args[0] |
|
71 + ". Actual: " + moduleName); |
|
72 } |
63 } |
73 } |
64 } |
74 } |