class OnlineCacheStateTesting
Convenient utility to generate instances of OnlineCacheState used for testing purposes.
You can use this class directly, or, use the recommended extension functions in the OnlineCacheState.Testing object.
Intentions of OnlineCacheStateTesting:
class CacheExistsDsl<CACHE> |
|
class NoCacheExistsDsl |
fun <CACHE> cache(requirements: GetCacheRequirements, lastTimeFetched: Date, more: CacheExistsDsl<CACHE>.() -> Unit = null): OnlineCacheState<CACHE> |
|
fun <CACHE> noCache(requirements: GetCacheRequirements, more: NoCacheExistsDsl.() -> Unit = null): OnlineCacheState<CACHE> |
|
fun <CACHE> none(): OnlineCacheState<CACHE> |