@Test public void testBornEarlier() { Date otherTime = new Date(data.getAge() + 100); data = new AgingData<Degree>(otherTime, value); assertThat(data.getAge(), greaterThanOrEqualTo(Long.valueOf(100))); }
public long getAge() { return (new Date()).getTime() - mBirthdate.getTime(); }
AgingData { public long getAge() { return (new Date()).getTime() - mBirthdate.getTime(); } }
AgingData { public long getAge() { return (new Date()).getTime() - mBirthdate.getTime(); } AgingData(TheUnit value);  AgingData(Date birthdate, TheUnit value); }
AgingData { public long getAge() { return (new Date()).getTime() - mBirthdate.getTime(); } AgingData(TheUnit value);  AgingData(Date birthdate, TheUnit value); TheUnit getValue(); long getAge(); long getTimestamp(); void setTimestamp(long timestamp); @Override String toString(); }
AgingData { public long getAge() { return (new Date()).getTime() - mBirthdate.getTime(); } AgingData(TheUnit value);  AgingData(Date birthdate, TheUnit value); TheUnit getValue(); long getAge(); long getTimestamp(); void setTimestamp(long timestamp); @Override String toString();  }