@Test public void givesSystemTimeSourceByDefault() { TimeSource timeSource = TimeSourceProvider.getTimeSource(); assertTrue(timeSource instanceof SystemTimeSource); }
public static synchronized TimeSource getTimeSource() { return timeSource; }
TimeSourceProvider { public static synchronized TimeSource getTimeSource() { return timeSource; } }
TimeSourceProvider { public static synchronized TimeSource getTimeSource() { return timeSource; } private  TimeSourceProvider(); }
TimeSourceProvider { public static synchronized TimeSource getTimeSource() { return timeSource; } private  TimeSourceProvider(); static synchronized TimeSource getTimeSource(); static synchronized void setTimeSource(TimeSource timeSource); }
TimeSourceProvider { public static synchronized TimeSource getTimeSource() { return timeSource; } private  TimeSourceProvider(); static synchronized TimeSource getTimeSource(); static synchronized void setTimeSource(TimeSource timeSource);  }