@Test public void testToXmlCustomElapsedTimeFormat() { TimestamperConfig config = new TimestamperConfig(); config.setElapsedTimeFormat(customElapsedTimeFormat); assertThat(toXml(config), is(xml(null, customElapsedTimeFormat))); }
@Test public void testSetElapsedTimeFormat() { TimestamperConfig config = new TimestamperConfig(); config.setElapsedTimeFormat(customElapsedTimeFormat); assertThat(config.getElapsedTimeFormat(), is(customElapsedTimeFormat)); }
@Test public void testSetElapsedTimeFormatEmpty() { TimestamperConfig config = new TimestamperConfig(); config.setElapsedTimeFormat(""); assertThat(config.getElapsedTimeFormat(), is("")); }