|
|
|
@ -21,7 +21,7 @@ import org.junit.jupiter.api.extension.ExtendWith; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.boot.context.properties.EnableConfigurationProperties; |
|
|
|
import org.springframework.cache.CacheManager; |
|
|
|
import org.springframework.cache.transaction.TransactionAwareCacheDecorator; |
|
|
|
import org.springframework.cache.caffeine.CaffeineCache; |
|
|
|
import org.springframework.cache.transaction.TransactionAwareCacheManagerProxy; |
|
|
|
import org.springframework.test.context.ContextConfiguration; |
|
|
|
import org.springframework.test.context.TestPropertySource; |
|
|
|
@ -51,8 +51,8 @@ public class CacheSpecsMapTest { |
|
|
|
|
|
|
|
@Test |
|
|
|
public void givenCacheConfig_whenCacheManagerReady_thenVerifyExistedCachesWithTransactionAwareCacheDecorator() { |
|
|
|
assertThat(cacheManager.getCache("relations")).isInstanceOf(TransactionAwareCacheDecorator.class); |
|
|
|
assertThat(cacheManager.getCache("devices")).isInstanceOf(TransactionAwareCacheDecorator.class); |
|
|
|
assertThat(cacheManager.getCache("relations")).isInstanceOf(CaffeineCache.class); |
|
|
|
assertThat(cacheManager.getCache("devices")).isInstanceOf(CaffeineCache.class); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
|