# Class com.ustadmobile.libcache.UstadCacheJvmTest

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

- Tests
- Standard error

## Tests

Test | Method name | Duration | Result
--- | --- | --- | ---
givenCompressableFileStored_whenRequestMadeWithoutAcceptEncoding_thenWillBeRetrievedAsCacheHitAndBeCompressed[jvm] | givenCompressableFileStored_whenRequestMadeWithoutAcceptEncoding_thenWillBeRetrievedAsCacheHitAndBeCompressed | 0.056s | passed
givenCompressableFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndBeCompressed[jvm] | givenCompressableFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndBeCompressed | 0.039s | passed
givenEmptyFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHit[jvm] | givenEmptyFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHit | 0.120s | passed
givenEntryLocked_whenLockRemoved_thenWillBeMovedToCacheDir[jvm] | givenEntryLocked_whenLockRemoved_thenWillBeMovedToCacheDir | 0.052s | passed
givenEntryNotLocked_whenLockAdded_thenWillBeMovedToPersistentDir[jvm] | givenEntryNotLocked_whenLockAdded_thenWillBeMovedToPersistentDir | 0.062s | passed
givenEntryNotStored_whenRetrieved_thenWillReturnNull[jvm] | givenEntryNotStored_whenRetrieved_thenWillReturnNull | 0.038s | passed
givenFileCachedAndStored_whenPartialRequestMadeIfRangeNotMatched_thenWillReceiveFullResponse[jvm] | givenFileCachedAndStored_whenPartialRequestMadeIfRangeNotMatched_thenWillReceiveFullResponse | 0.043s | passed
givenFileCachedAndStored_whenPartialRequestMade_thenWillReceivePartialData[jvm] | givenFileCachedAndStored_whenPartialRequestMade_thenWillReceivePartialData | 0.056s | passed
givenLockedEntryStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndSavedInPersistentPath[jvm] | givenLockedEntryStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndSavedInPersistentPath | 0.035s | passed
givenNonCompressableFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndNotCompressed[jvm] | givenNonCompressableFileStored_whenRequestMade_thenWillBeRetrievedAsCacheHitAndNotCompressed | 0.057s | passed
givenResponseIsNotUpdated_whenStored_thenWillUpdateLastAccessAndValidationTime[jvm] | givenResponseIsNotUpdated_whenStored_thenWillUpdateLastAccessAndValidationTime | 0.053s | passed
givenResponseIsUpdated_whenRetrieved_thenLatestResponseWillBeReturned[jvm] | givenResponseIsUpdated_whenRetrieved_thenLatestResponseWillBeReturned | 0.284s | passed

## Standard error

    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/blank.txt to /tmp/junit333007365266606437/junit5074970385551383194/tmpWork/1.tmp (integrity=sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=)
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/blank.txt
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/blank.txt
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit3613694458660753250/junit8893186391582050514/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): add retention locks for http://www.server.com/file.png
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): moveToNewPath (http://www.server.com/file.png) /tmp/junit3613694458660753250/junit8893186391582050514/cache/0b7f79ea-4e72-4999-bba2-51f569e16b28 -> /tmp/junit3613694458660753250/junit8893186391582050514/persistent/0b7f79ea-4e72-4999-bba2-51f569e16b28
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit5677697216526791031/junit6956243079576829234/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): add retention locks for http://www.server.com/file.png
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit404696204181841810/junit1608825293077596271/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): remove retention locks for #1767121781751http://www.server.com/file.png
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): moveToNewPath (http://www.server.com/file.png) /tmp/junit404696204181841810/junit1608825293077596271/persistent/8abf501e-7a78-4e2e-8aea-701c08adf371 -> /tmp/junit404696204181841810/junit1608825293077596271/cache/8abf501e-7a78-4e2e-8aea-701c08adf371
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/ustadmobile-epub.js to /tmp/junit13563657966769092733/junit8417186536397412643/tmpWork/1.tmp (integrity=sha256-VSq6jc4LzKolTOOJz3m0EyOgcFjLiWDjIhq5d2YB7fM=)
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/ustadmobile-epub.js
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/ustadmobile-epub.js
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/ustadmobile-epub.js to /tmp/junit10560294129834479780/junit9646372384431354331/tmpWork/1.tmp (integrity=sha256-VSq6jc4LzKolTOOJz3m0EyOgcFjLiWDjIhq5d2YB7fM=)
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/ustadmobile-epub.js
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/ustadmobile-epub.js
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit4375253827694767204/junit11866793859168292485/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Dec 30, 2025 8:09:41 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): add retention locks for http://www.server.com/file.png
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit10770993478728098778/junit5966076612079638175/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): storerequest 1 entries
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): copied request data for http://www.server.com/file.png to /tmp/junit7001996924901690758/junit231146135816383442/tmpWork/1.tmp (integrity=sha256-hlfF4oGFRfane2XiRyLv02LtOJ4Va2UanpQV0im/K8I=)
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    FINEST: [VERBOSE] UstadCache - UstadCache(): cacheEntries created 1 entries
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): deleting 0 tmp files
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): db transaction completed
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    INFO: [INFO] UstadCache - UstadCache(): Retrieve http://www.server.com/file.png
    Dec 30, 2025 8:09:42 PM io.github.aakira.napier.DebugAntilog performLog
    FINE: [DEBUG] UstadCache - UstadCache(): FOUND http://www.server.com/file.png