@Test public void testService_Defaults() throws Exception { AdaptrisMessage m = AdaptrisMessageFactory.getDefaultInstance().newMessage(); AddTimestampMetadataService service = new AddTimestampMetadataService(); service.setDateFormatBuilder(null); execute(service, m); assertTrue(m.headersContainsKey(DEFAULT_METADATA_KEY)); assertTrue(m.getMetadataValue(DEFAULT_METADATA_KEY) != null); }
public void setDateFormatBuilder(DateFormatBuilder builder) { this.dateFormatBuilder = builder; }
AddTimestampMetadataService extends ServiceImp { public void setDateFormatBuilder(DateFormatBuilder builder) { this.dateFormatBuilder = builder; } }
AddTimestampMetadataService extends ServiceImp { public void setDateFormatBuilder(DateFormatBuilder builder) { this.dateFormatBuilder = builder; } AddTimestampMetadataService();  AddTimestampMetadataService(String format, String metadataKey);  AddTimestampMetadataService(String format, String metadataKey, Boolean alwaysReplace);  AddTimestampMetadataService(String format, String metadataKey, Boolean alwaysReplace, String offset);  AddTimestampMetadataService(String format, String metadataKey, Boolean alwaysReplace, TimestampGenerator s); }
AddTimestampMetadataService extends ServiceImp { public void setDateFormatBuilder(DateFormatBuilder builder) { this.dateFormatBuilder = builder; } AddTimestampMetadataService();  AddTimestampMetadataService(String format, String metadataKey);  AddTimestampMetadataService(String format, String metadataKey, Boolean alwaysReplace);  AddTimestampMetadataService(String format, String metadataKey, Boolean alwaysReplace, String offset);  AddTimestampMetadataService(String format, String metadataKey, Boolean alwaysReplace, TimestampGenerator s); @Override void doService(AdaptrisMessage msg); String getMetadataKey(); void setMetadataKey(String metadataKey); Boolean getAlwaysReplace(); void setAlwaysReplace(Boolean b); @Override void prepare(); TimestampGenerator getTimestampGenerator(); void setTimestampGenerator(TimestampGenerator s); DateFormatBuilder getDateFormatBuilder(); void setDateFormatBuilder(DateFormatBuilder builder); }
AddTimestampMetadataService extends ServiceImp { public void setDateFormatBuilder(DateFormatBuilder builder) { this.dateFormatBuilder = builder; } AddTimestampMetadataService();  AddTimestampMetadataService(String format, String metadataKey);  AddTimestampMetadataService(String format, String metadataKey, Boolean alwaysReplace);  AddTimestampMetadataService(String format, String metadataKey, Boolean alwaysReplace, String offset);  AddTimestampMetadataService(String format, String metadataKey, Boolean alwaysReplace, TimestampGenerator s); @Override void doService(AdaptrisMessage msg); String getMetadataKey(); void setMetadataKey(String metadataKey); Boolean getAlwaysReplace(); void setAlwaysReplace(Boolean b); @Override void prepare(); TimestampGenerator getTimestampGenerator(); void setTimestampGenerator(TimestampGenerator s); DateFormatBuilder getDateFormatBuilder(); void setDateFormatBuilder(DateFormatBuilder builder);  }