use of org.springframework.security.core.userdetails.cache.NullUserCache in project spring-security by spring-projects.
the class DigestAuthenticationFilterTests method testGettersSetters.
@Test
public void testGettersSetters() {
DigestAuthenticationFilter filter = new DigestAuthenticationFilter();
filter.setUserDetailsService(mock(UserDetailsService.class));
assertThat(filter.getUserDetailsService() != null).isTrue();
filter.setAuthenticationEntryPoint(new DigestAuthenticationEntryPoint());
assertThat(filter.getAuthenticationEntryPoint() != null).isTrue();
filter.setUserCache(null);
assertThat(filter.getUserCache()).isNull();
filter.setUserCache(new NullUserCache());
assertThat(filter.getUserCache()).isNotNull();
}
Aggregations