How can I test 2nd level cache hits in a unit test...
# spring
h
How can I test 2nd level cache hits in a unit test? I’m using this article as a reference https://www.baeldung.com/hibernate-second-level-cache but I’m not sure how to test it because I can’t seem to get access to the Cachemanager singleton in Kotlin
d
if you ask me: you shouldn't, especially not as part of your unit tests. If you really want to test it then it should be part of your integration tests