コード例 #1
0
 @Test
 public void testToXmlCustomElapsedTimeFormat() {
   TimestamperConfig config = new TimestamperConfig();
   config.setElapsedTimeFormat(customElapsedTimeFormat);
   assertThat(toXml(config), is(xml(null, customElapsedTimeFormat)));
 }
コード例 #2
0
 @Test
 public void testSetElapsedTimeFormat() {
   TimestamperConfig config = new TimestamperConfig();
   config.setElapsedTimeFormat(customElapsedTimeFormat);
   assertThat(config.getElapsedTimeFormat(), is(customElapsedTimeFormat));
 }
コード例 #3
0
 @Test
 public void testSetElapsedTimeFormatEmpty() {
   TimestamperConfig config = new TimestamperConfig();
   config.setElapsedTimeFormat("");
   assertThat(config.getElapsedTimeFormat(), is(""));
 }