removed problematic (and not very useful) unit test, closes #742

pull/946/head
Justin Richer 2015-10-19 15:00:41 -04:00
parent f04face41e
commit 5f24685f17
1 changed files with 0 additions and 31 deletions

View File

@ -160,37 +160,6 @@ public class TestJWKSetKeyStore {
File file = new File(ks_file);
/* First, test with file without "read" permission */
boolean set = false;
if (file.exists()) {
set = file.setReadable(false);
}
// skip this part of the test on systems that don't allow the settable function, like Windows
if (set) {
Resource loc_noread = new FileSystemResource(file);
assertTrue(loc_noread.exists());
// assertTrue(!loc_noread.isReadable());
boolean thrown = false;
try {
ks.setLocation(loc_noread);
} catch (IllegalArgumentException e) {
thrown = true;
}
assertTrue(thrown);
/* Now, make cache file readable */
if (file.exists()) {
file.setReadable(true);
}
}
Resource loc = new FileSystemResource(file);
assertTrue(loc.exists());
assertTrue(loc.isReadable());