Extracted removeUserFromCache(String) to UserCache interface.

This commit is contained in:
Ben Alex
2004-08-20 05:52:05 +00:00
parent bf53abf46e
commit eb9c7d0852
5 changed files with 22 additions and 0 deletions

View File

@@ -354,5 +354,7 @@ public class DaoAuthenticationProviderTests extends TestCase {
public void putUserInCache(UserDetails user) {
cache.put(user.getUsername(), user);
}
public void removeUserFromCache(String username) {}
}
}

View File

@@ -53,6 +53,7 @@ public class NullUserCacheTests extends TestCase {
NullUserCache cache = new NullUserCache();
cache.putUserInCache(getUser());
assertNull(cache.getUserFromCache(null));
cache.removeUserFromCache(null);
}
private User getUser() {