Instantly share code, notes, and snippets.

Embed
What would you like to do?
Unit tests with dates 9
public interface TimeSource {
/**
* Returns the current time in milliseconds from epoch.
*/
long millis();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment