@Test public void shouldEnsureTimestampHeaderPresentInTimestampedEvent() { SimpleEvent base = new SimpleEvent(); TimestampedEvent timestampedEvent = new TimestampedEvent(base); assertEquals(FIXED_TIME_MILLIS, timestampedEvent.getTimestamp()); assertEquals(String.valueOf(FIXED_TIME_MILLIS), timestampedEvent.getHeaders().get("timestamp")); }
long getTimestamp() { return timestamp; }
TimestampedEvent extends SimpleEvent { long getTimestamp() { return timestamp; } }
TimestampedEvent extends SimpleEvent { long getTimestamp() { return timestamp; } TimestampedEvent(Event base); }
TimestampedEvent extends SimpleEvent { long getTimestamp() { return timestamp; } TimestampedEvent(Event base);  }
TimestampedEvent extends SimpleEvent { long getTimestamp() { return timestamp; } TimestampedEvent(Event base);   }