generator.server.springboot.database.hibernate2ndlevelcache.test.Hibernate2ndLevelCacheConfigurationIT.mustache Maven / Gradle / Ivy
package {{packageName}}.wire.cache.infrastructure.secondary;
import jakarta.persistence.EntityManagerFactory;
import jakarta.persistence.PersistenceUnit;
import org.assertj.core.api.Assertions;
import org.hibernate.cache.internal.EnabledCaching;
import org.junit.jupiter.api.Test;
import {{packageName}}.IntegrationTest;
@IntegrationTest
class Hibernate2ndLevelCacheConfigurationIT {
@PersistenceUnit
private EntityManagerFactory factory;
@Test
void shouldEnableHibernateCaching() {
Assertions.assertThat(factory.getCache()).isInstanceOf(EnabledCaching.class);
}
}