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