test/jdk/sun/security/krb5/auto/BogusKDC.java
changeset 48668 2da4a52715d8
parent 47216 71c04702a3d5
equal deleted inserted replaced
48667:f2344724a475 48668:2da4a52715d8
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2018, 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.
    31 import javax.security.auth.login.LoginContext;
    31 import javax.security.auth.login.LoginContext;
    32 import javax.security.auth.login.LoginException;
    32 import javax.security.auth.login.LoginException;
    33 
    33 
    34 /*
    34 /*
    35  * @test
    35  * @test
    36  * @bug 4515853 8075297
    36  * @bug 4515853 8075297 8194486
    37  * @summary Checks that Kerberos client tries slave KDC
    37  * @summary Checks that Kerberos client tries slave KDC
    38  *          if master KDC is not responding
    38  *          if master KDC is not responding
    39  * @run main/othervm BogusKDC
    39  * @library /test/lib
       
    40  * @run main jdk.test.lib.FileInstaller TestHosts TestHosts
       
    41  * @run main/othervm -Djdk.net.hosts.file=TestHosts BogusKDC
    40  */
    42  */
    41 public class BogusKDC {
    43 public class BogusKDC {
    42 
    44 
    43     static final String TEST_SRC = System.getProperty("test.src", ".");
    45     static final String TEST_SRC = System.getProperty("test.src", ".");
    44     static final String HOST = "localhost";
    46     static final String HOST = "localhost";