All Downloads are FREE. Search and download functionalities are using the official Maven repository.

generator.server.springboot.database.hibernate2ndlevelcache.test.Hibernate2ndLevelCacheConfigurationIT.mustache Maven / Gradle / Ivy

There is a newer version: 1.22.0
Show newest version
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);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy