Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Latest commit

 

History

History
16 lines (12 loc) · 418 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 418 Bytes

wisp-time-testing

Provides a FakeClock, an implementation of java.time.Clock that can be manipulated for testing components with logic that relies on clocks.

Usage

val clock = FakeClock()

val foo = ThingThatNeedsClock(clock)
foo.doSomething()
clock.add(2, TimeUnit.SECOND)
foo.doSomething()