1 package com.atlassian.core.util; 2 3 import java.util.Date; 4 5 /** 6 * Convenient way to allow test classes to tell another class to use a different 7 * idea of what the time is - allows much easier testing of time-based functions. 8 */ 9 public interface Clock 10 { 11 Date getCurrentDate(); 12 }