@Test public void testSetTimestamp() throws Exception { QueryResultDataPoint subject = new QueryResultDataPoint(); Assert.assertEquals("Timestamp of uninitialized QueryResultDataPoint should be zero.", subject.getTimestamp(), 0); subject.setTimestamp(initialTime); Assert.assertEquals("Timestamp of initialized QueryResultDataPoint should match given value.", subject.getTimestamp(), initialTime); }
public void setTimestamp(long timestamp) { this.timestamp = timestamp; }
QueryResultDataPoint { public void setTimestamp(long timestamp) { this.timestamp = timestamp; } }
QueryResultDataPoint { public void setTimestamp(long timestamp) { this.timestamp = timestamp; } QueryResultDataPoint();  QueryResultDataPoint(long timestamp, double value); }
QueryResultDataPoint { public void setTimestamp(long timestamp) { this.timestamp = timestamp; } QueryResultDataPoint();  QueryResultDataPoint(long timestamp, double value); long getTimestamp(); void setTimestamp(long timestamp); double getValue(); void setValue(double value); @Override boolean equals(Object o); @Override int hashCode(); }
QueryResultDataPoint { public void setTimestamp(long timestamp) { this.timestamp = timestamp; } QueryResultDataPoint();  QueryResultDataPoint(long timestamp, double value); long getTimestamp(); void setTimestamp(long timestamp); double getValue(); void setValue(double value); @Override boolean equals(Object o); @Override int hashCode();  }