@Test
public void testUrlConfig() throws Exception {
URLMasterPasswordProviderValidator validator =
new URLMasterPasswordProviderValidator(getSecurityManager());
URLMasterPasswordProviderConfig config = new URLMasterPasswordProviderConfig();
config.setName("foo");
config.setClassName(URLMasterPasswordProvider.class.getCanonicalName());
try {
validator.validateAddMasterPasswordProvider(config);
//getSecurityManager().saveMasterPasswordProviderConfig(config);
fail();
}
catch(URLMasterPasswordProviderException e) {
assertSecurityException(e, URLMasterPasswordProviderException.URL_REQUIRED);
}
config.setURL(new URL("file:ABC"));
config.setReadOnly(true);
try {
validator.validateAddMasterPasswordProvider(config);
//getSecurityManager().saveMasterPasswordProviderConfig(config);
fail();
}