Example #1
0
 @Test
 public void parse_update() {
   final DailyLogEntry dailyLogEntry =
       new DailyLogEntry("20130312/101010.update/001.msg-in.txt.gz", "20130312");
   assertThat(dailyLogEntry.getUpdateId(), is("20130312/101010.update/001.msg-in.txt.gz"));
   assertThat(dailyLogEntry.getDate(), is("20130312"));
 }
Example #2
0
 @Test
 public void parse_notification() {
   final DailyLogEntry dailyLogEntry =
       new DailyLogEntry("20130312/101010.update/666.msg-out.txt.gz", "20130312");
   assertThat(dailyLogEntry.getUpdateId(), is("20130312/101010.update/666.msg-out.txt.gz"));
   assertThat(dailyLogEntry.getDate(), is("20130312"));
 }