# Class com.ustadmobile.libcache.UstadCacheJvmTest

12 tests | 0 failures | 0 ignored | 0.818s duration
| 100% successful

- Tests
- Standard error

## Tests

Test | Method name | Duration | Result
--- | --- | --- | ---
givenCompressableFileStored_whenRequestMadeWithoutAcceptEncoding_thenWillBeRetrievedAsCacheHitAndBeCompressed[jvm] | givenCompressableFileStored_whenRequestMadeWithoutAcceptEncoding_thenWillBeRetrievedAsCacheHitAndBeCompressed | 0.047s | passed
givenCompressableFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndBeCompressed[jvm] | givenCompressableFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndBeCompressed | 0.047s | passed
givenEmptyFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHit[jvm] | givenEmptyFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHit | 0.087s | passed
givenEntryLocked_whenLockRemoved_thenWillBeMovedToCacheDir[jvm] | givenEntryLocked_whenLockRemoved_thenWillBeMovedToCacheDir | 0.053s | passed
givenEntryNotLocked_whenLockAdded_thenWillBeMovedToPersistentDir[jvm] | givenEntryNotLocked_whenLockAdded_thenWillBeMovedToPersistentDir | 0.061s | passed
givenEntryNotStored_whenRetrieved_thenWillReturnNull[jvm] | givenEntryNotStored_whenRetrieved_thenWillReturnNull | 0.031s | passed
givenFileCachedAndStored_whenPartialRequestMadeIfRangeNotMatched_thenWillReceiveFullResponse[jvm] | givenFileCachedAndStored_whenPartialRequestMadeIfRangeNotMatched_thenWillReceiveFullResponse | 0.053s | passed
givenFileCachedAndStored_whenPartialRequestMade_thenWillReceivePartialData[jvm] | givenFileCachedAndStored_whenPartialRequestMade_thenWillReceivePartialData | 0.054s | passed
givenLockedEntryStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndSavedInPersistentPath[jvm] | givenLockedEntryStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndSavedInPersistentPath | 0.048s | passed
givenNonCompressableFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndNotCompressed[jvm] | givenNonCompressableFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndNotCompressed | 0.041s | passed
givenResponseIsNotUpdated_whenStored_thenWillUpdateLastAccessAndValidationTime[jvm] | givenResponseIsNotUpdated_whenStored_thenWillUpdateLastAccessAndValidationTime | 0.046s | passed
givenResponseIsUpdated_whenRetrieved_thenLatestResponseWillBeReturned[jvm] | givenResponseIsUpdated_whenRetrieved_thenLatestResponseWillBeReturned | 0.250s | passed

## Standard error

    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/blank.txt to /tmp/junit15938742751502255104/junit6388716493290851643/tmpWork/1.tmp (integrity=sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=)
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/blank.txt
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/blank.txt
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit11300914397773217288/junit4640475517652631718/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): add retention locks for http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): moveToNewPath (http://www.server.com/file.png) /tmp/junit11300914397773217288/junit4640475517652631718/cache/b0b8f9d8-7017-43ad-a71f-7d3aadfce2bb -> /tmp/junit11300914397773217288/junit4640475517652631718/persistent/b0b8f9d8-7017-43ad-a71f-7d3aadfce2bb
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit11488885262167475630/junit6677725633233675149/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): add retention locks for http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit18070274723136030132/junit528213313418714657/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): remove retention locks for #1763496525281http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): moveToNewPath (http://www.server.com/file.png) /tmp/junit18070274723136030132/junit528213313418714657/persistent/88e58d42-de6d-458f-900a-5932f541a011 -> /tmp/junit18070274723136030132/junit528213313418714657/cache/88e58d42-de6d-458f-900a-5932f541a011
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/ustadmobile-epub.js to /tmp/junit11157071808049197854/junit10823954346513428579/tmpWork/1.tmp (integrity=sha256-VSq6jc4LzKolTOOJz3m0EyOgcFjLiWDjIhq5d2YB7fM=)
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/ustadmobile-epub.js
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/ustadmobile-epub.js
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/ustadmobile-epub.js to /tmp/junit2025247429009830393/junit15933481600520632551/tmpWork/1.tmp (integrity=sha256-VSq6jc4LzKolTOOJz3m0EyOgcFjLiWDjIhq5d2YB7fM=)
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/ustadmobile-epub.js
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/ustadmobile-epub.js
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit16915080134311590317/junit2180045286514310173/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): add retention locks for http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit16502185951073391582/junit1766861030919144970/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit9141938236233590463/junit17374126563121820988/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Nov 18, 2025 9:08:45 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png