TimestampFormatTrait extends StringTrait { public Format getFormat() { return Format.fromString(getValue()); } TimestampFormatTrait(String value, SourceLocation sourceLocation);  TimestampFormatTrait(String value); Format getFormat(); static final String EPOCH_SECONDS; static final String DATE_TIME; static final String HTTP_DATE; static final ShapeId ID; }
@Test public void createsFormatFromTrait() { TimestampFormatTrait trait = new TimestampFormatTrait("date-time"); assertThat(trait.getFormat(), equalTo(TimestampFormatTrait.Format.DATE_TIME)); }