refactoring: tests change type: from TransactionAwareCacheManagerProxy to SimpleCacheManager

This commit is contained in:
nickAS21 2022-06-22 08:08:35 +03:00
parent f84f903f95
commit a977e71b87

View File

@ -22,7 +22,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cache.CacheManager;
import org.springframework.cache.caffeine.CaffeineCache;
import org.springframework.cache.transaction.TransactionAwareCacheManagerProxy;
import org.springframework.cache.support.SimpleCacheManager;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.TestPropertySource;
import org.springframework.test.context.junit.jupiter.SpringExtension;
@ -46,7 +46,7 @@ public class CacheSpecsMapTest {
@Test
public void verifyTransactionAwareCacheManagerProxy() {
assertThat(cacheManager).isInstanceOf(TransactionAwareCacheManagerProxy.class);
assertThat(cacheManager).isInstanceOf(SimpleCacheManager.class);
}
@Test