@Test public final void testGetBuildDate() throws ParseException { ReleaseDetails instance = ReleaseDetails.getInstance(); SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); Date date = formatter.parse("2011-07-31"); assertEquals(instance.getBuildDate(), date); }
public Date getBuildDate() { return new Date(this.buildDate.getTime()); }
ReleaseDetails { public Date getBuildDate() { return new Date(this.buildDate.getTime()); } }
ReleaseDetails { public Date getBuildDate() { return new Date(this.buildDate.getTime()); } private  ReleaseDetails(); private  ReleaseDetails(final String version, final Date buildDate); }
ReleaseDetails { public Date getBuildDate() { return new Date(this.buildDate.getTime()); } private  ReleaseDetails(); private  ReleaseDetails(final String version, final Date buildDate); String getVersion(); Date getBuildDate(); @SuppressWarnings("static-method") String getRights(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static ReleaseDetails getInstance(); }
ReleaseDetails { public Date getBuildDate() { return new Date(this.buildDate.getTime()); } private  ReleaseDetails(); private  ReleaseDetails(final String version, final Date buildDate); String getVersion(); Date getBuildDate(); @SuppressWarnings("static-method") String getRights(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static ReleaseDetails getInstance();  }