Skip to content

Commit

Permalink
Cleanup SecurityTestConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
igdianov committed Dec 23, 2024
1 parent 80dc5c7 commit cafb7b6
Showing 1 changed file with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;

import com.github.benmanes.caffeine.cache.Caffeine;
import java.util.Collection;
import org.activiti.cloud.services.common.security.config.CommonJwtAuthenticationConverterConfiguration;
import org.activiti.cloud.services.common.security.config.CommonSecurityAutoConfiguration;
import org.activiti.cloud.services.common.security.jwt.JwtAccessTokenProvider;
Expand All @@ -34,10 +32,6 @@
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.cache.CacheAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cache.Cache;
import org.springframework.cache.CacheManager;
import org.springframework.cache.caffeine.CaffeineCache;
import org.springframework.cache.support.SimpleCacheManager;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.core.convert.converter.Converter;
Expand All @@ -60,17 +54,6 @@
@EnableConfigurationProperties(value = AuthorizationProperties.class)
public class SecurityTestConfiguration {

// @Bean
public CacheManager cacheManager(Collection<Cache> caches) {
SimpleCacheManager cacheManager = new SimpleCacheManager() {
@Override
protected Cache getMissingCache(String name) {
return new CaffeineCache(name, Caffeine.newBuilder().build());
}
};
cacheManager.setCaches(caches);
return cacheManager;
}

@Bean
public ClientRegistrationRepository clientRegistrationRepository() {
Expand Down

0 comments on commit cafb7b6

Please sign in to comment.