diff --git a/ontrack-service/src/test/java/net/nemerosa/ontrack/service/CacheConfigIT.kt b/ontrack-service/src/test/java/net/nemerosa/ontrack/service/CacheConfigIT.kt deleted file mode 100644 index b94cc5635ca..00000000000 --- a/ontrack-service/src/test/java/net/nemerosa/ontrack/service/CacheConfigIT.kt +++ /dev/null @@ -1,40 +0,0 @@ -package net.nemerosa.ontrack.service - -import net.nemerosa.ontrack.extension.api.support.TestProperty -import net.nemerosa.ontrack.extension.api.support.TestPropertyType -import net.nemerosa.ontrack.it.AbstractServiceTestJUnit4Support -import net.nemerosa.ontrack.repository.PropertyRepository -import org.junit.Test -import org.springframework.beans.factory.annotation.Autowired -import kotlin.test.assertTrue - -class CacheConfigIT : AbstractServiceTestJUnit4Support() { - - @Autowired - private lateinit var propertyRepository: PropertyRepository - - @Test - fun `Properties are cached`() { - val project = doCreateProject() - setProperty( - project, - TestPropertyType::class.java, - TestProperty.of("test") - ) - // Gets the raw property - val p = propertyRepository.loadProperty( - TestPropertyType::class.java.name, - project.projectEntityType, - project.id - ) - // Gets it a second time - val p2 = propertyRepository.loadProperty( - TestPropertyType::class.java.name, - project.projectEntityType, - project.id - ) - // Checks this is the same instance - assertTrue(p === p2, "Cache enabled") - } - -} \ No newline at end of file