Skip to content

brianm/clocked-executor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test-Oriented Scheduled Executor

Maven Central

ScheduledExecutorService implementation designed for deterministic testing. It runs off an internal clock which must be manually advanced via the ClockedExecutorService#advance method.

Additionally, for recurring scheduled tasks, there is a guarantee that the task will only be called once for each call to advance(...). This is important to note as it rather violates the normal contracts, but is very useful for testing.

See this example.

About

Easy testing of ScheduledExecutorService thinglets

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages