# Class com.ustadmobile.libcache.UstadCacheJvmTest

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

- Tests
- Standard error

## Tests

Test | Method name | Duration | Result
--- | --- | --- | ---
givenCompressableFileStored_whenRequestMadeWithoutAcceptEncoding_thenWillBeRetrievedAsCacheHitAndBeCompressed[jvm] | givenCompressableFileStored_whenRequestMadeWithoutAcceptEncoding_thenWillBeRetrievedAsCacheHitAndBeCompressed | 0.057s | passed
givenCompressableFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndBeCompressed[jvm] | givenCompressableFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndBeCompressed | 0.091s | passed
givenEmptyFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHit[jvm] | givenEmptyFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHit | 0.133s | passed
givenEntryLocked_whenLockRemoved_thenWillBeMovedToCacheDir[jvm] | givenEntryLocked_whenLockRemoved_thenWillBeMovedToCacheDir | 0.102s | passed
givenEntryNotLocked_whenLockAdded_thenWillBeMovedToPersistentDir[jvm] | givenEntryNotLocked_whenLockAdded_thenWillBeMovedToPersistentDir | 0.107s | passed
givenEntryNotStored_whenRetrieved_thenWillReturnNull[jvm] | givenEntryNotStored_whenRetrieved_thenWillReturnNull | 0.045s | passed
givenFileCachedAndStored_whenPartialRequestMadeIfRangeNotMatched_thenWillReceiveFullResponse[jvm] | givenFileCachedAndStored_whenPartialRequestMadeIfRangeNotMatched_thenWillReceiveFullResponse | 0.081s | passed
givenFileCachedAndStored_whenPartialRequestMade_thenWillReceivePartialData[jvm] | givenFileCachedAndStored_whenPartialRequestMade_thenWillReceivePartialData | 0.077s | passed
givenLockedEntryStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndSavedInPersistentPath[jvm] | givenLockedEntryStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndSavedInPersistentPath | 0.068s | passed
givenNonCompressableFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndNotCompressed[jvm] | givenNonCompressableFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndNotCompressed | 0.082s | passed
givenResponseIsNotUpdated_whenStored_thenWillUpdateLastAccessAndValidationTime[jvm] | givenResponseIsNotUpdated_whenStored_thenWillUpdateLastAccessAndValidationTime | 0.070s | passed
givenResponseIsUpdated_whenRetrieved_thenLatestResponseWillBeReturned[jvm] | givenResponseIsUpdated_whenRetrieved_thenLatestResponseWillBeReturned | 0.376s | passed

## Standard error

    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/blank.txt to /tmp/junit10700040018948483718/junit2331140996867703637/tmpWork/1.tmp (integrity=sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=)
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/blank.txt
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/blank.txt
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit2505664310618677016/junit1796439261095838177/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): add retention locks for http://www.server.com/file.png
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): moveToNewPath (http://www.server.com/file.png) /tmp/junit2505664310618677016/junit1796439261095838177/cache/51b5c75a-7e9c-4e0f-8e33-7df62cde5f35 -> /tmp/junit2505664310618677016/junit1796439261095838177/persistent/51b5c75a-7e9c-4e0f-8e33-7df62cde5f35
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit7308111940074820508/junit9217909203623475493/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Feb 17, 2026 12:25:52 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): add retention locks for http://www.server.com/file.png
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit18240871755396717669/junit11077562712199496562/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): remove retention locks for #1771284352956http://www.server.com/file.png
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): moveToNewPath (http://www.server.com/file.png) /tmp/junit18240871755396717669/junit11077562712199496562/persistent/fed9991d-4fba-45b7-b048-2f5026abd05b -> /tmp/junit18240871755396717669/junit11077562712199496562/cache/fed9991d-4fba-45b7-b048-2f5026abd05b
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/ustadmobile-epub.js to /tmp/junit8062524848593760761/junit6971075034134917570/tmpWork/1.tmp (integrity=sha256-VSq6jc4LzKolTOOJz3m0EyOgcFjLiWDjIhq5d2YB7fM=)
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/ustadmobile-epub.js
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/ustadmobile-epub.js
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/ustadmobile-epub.js to /tmp/junit12094480300684568041/junit13311724322641633238/tmpWork/1.tmp (integrity=sha256-VSq6jc4LzKolTOOJz3m0EyOgcFjLiWDjIhq5d2YB7fM=)
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/ustadmobile-epub.js
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/ustadmobile-epub.js
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit5235821046481258955/junit16676451437231033484/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): add retention locks for http://www.server.com/file.png
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit7364445053459861001/junit3435710697080615510/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit17030200644780995490/junit15952610487696244043/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Feb 17, 2026 12:25:53 AM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png