@Test public void testNewTime() { Time now = factory.newTime(); DateTime result = new DateTime(now.getTime()); assertThat(result.getYear(), is(1970)); assertThat(result.getMonthOfYear(), is(1)); assertThat(result.getDayOfMonth(), is(1)); assertThat(result.getHourOfDay(), is(23)); assertThat(result.getMinuteOfHour(), is(7)); assertThat(result.getSecondOfMinute(), is(11)); assertThat(result.getMillisOfSecond(), is(100)); }
@Override public Time newTime() { Date now = newDate(); return DateConvertUtils.convertToTime(now); }
DefaultClassicDateFactory implements ClassicDateFactory { @Override public Time newTime() { Date now = newDate(); return DateConvertUtils.convertToTime(now); } }
DefaultClassicDateFactory implements ClassicDateFactory { @Override public Time newTime() { Date now = newDate(); return DateConvertUtils.convertToTime(now); }  }
DefaultClassicDateFactory implements ClassicDateFactory { @Override public Time newTime() { Date now = newDate(); return DateConvertUtils.convertToTime(now); }  @Override Date newDate(); @Override Timestamp newTimestamp(); @Override java.sql.Date newSqlDate(); @Override Time newTime(); }
DefaultClassicDateFactory implements ClassicDateFactory { @Override public Time newTime() { Date now = newDate(); return DateConvertUtils.convertToTime(now); }  @Override Date newDate(); @Override Timestamp newTimestamp(); @Override java.sql.Date newSqlDate(); @Override Time newTime();  }