SimpleArchiver implements LogEventHandler { public void init() { archiver.init(); } SimpleArchiver(String logPath, String service, long maxFileSize); void init(); @Override void handle(final Timber.LogEvent logEvent); @Override void flush(); @Override void close(); @Override String getName();  }
@Test public void testInitialization() throws Exception { final String logPath = temp.newFolder("test1").getAbsolutePath(); final SimpleArchiver archiver = new SimpleArchiver(logPath, "", MEGABYTE); archiver.init(); }
@Test public void testInitializationUnexist() throws Exception { final String logPath = temp.newFolder("test2").getAbsolutePath() + File.separator + "unexist"; final SimpleArchiver archiver = new SimpleArchiver(logPath, "", MEGABYTE); archiver.init(); }