* TODO
*/
public void test_Config() throws Exception {
// create login module for testing
Krb5LoginModule module = new Krb5LoginModule();
module.initialize(null, new MockCallbackHandler(), null, options);
// case 1: unset 'kdc' and set 'real' sys.props
TestUtils.setSystemProperty(ENV_KDC, null);
TestUtils.setSystemProperty(ENV_REALM, "some_value");
try {
module.login();
fail("No expected LoginException");
} catch (LoginException e) {
}
// case 2: set 'kdc' and unset 'real' sys.props
TestUtils.setSystemProperty(ENV_KDC, "some_value");
TestUtils.setSystemProperty(ENV_REALM, null);
try {
module.login();
fail("No expected LoginException");
} catch (LoginException e) {
}
//TODO: test reading config from configuration file 'krb5.conf'