Skip to content

Commit 5f24685

Browse files
committed
removed problematic (and not very useful) unit test, closes mitreid-connect#742
1 parent f04face commit 5f24685

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

openid-connect-common/src/test/java/org/mitre/jose/TestJWKSetKeyStore.java

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -160,37 +160,6 @@ public void ksEmptyConstructorkLoc() {
160160

161161
File file = new File(ks_file);
162162

163-
/* First, test with file without "read" permission */
164-
165-
boolean set = false;
166-
167-
if (file.exists()) {
168-
set = file.setReadable(false);
169-
}
170-
171-
// skip this part of the test on systems that don't allow the settable function, like Windows
172-
if (set) {
173-
174-
Resource loc_noread = new FileSystemResource(file);
175-
assertTrue(loc_noread.exists());
176-
// assertTrue(!loc_noread.isReadable());
177-
178-
boolean thrown = false;
179-
try {
180-
ks.setLocation(loc_noread);
181-
} catch (IllegalArgumentException e) {
182-
thrown = true;
183-
}
184-
assertTrue(thrown);
185-
186-
/* Now, make cache file readable */
187-
188-
if (file.exists()) {
189-
file.setReadable(true);
190-
}
191-
192-
}
193-
194163
Resource loc = new FileSystemResource(file);
195164
assertTrue(loc.exists());
196165
assertTrue(loc.isReadable());

0 commit comments

Comments
 (0)