package talkcrawler; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; import static junit.framework.TestCase.fail; import org.junit.Before; import org.junit.Test; public class DailyIndexTest { TalkCrawlerProperties prop; @Before public void setUp(){ try { prop = new TalkCrawlerProperties().load(); } catch (IOException ex) { Logger.getLogger(DailyIndexTest.class.getName()).log(Level.SEVERE, null, ex); } } /** * Test of load method, of class MonthlyIndex. * 2014-August */ @Test @SuppressWarnings("UseSpecificCatch") public void load_201903() { try { DailyIndex ins = new DailyIndex(prop, "2019-March", "date.html"); ins.load(); } catch(Exception e) { fail("The test case is a prototype."); } } @Test @SuppressWarnings("UseSpecificCatch") public void load_201408() { try { DailyIndex ins = new DailyIndex(prop, "2014-August", "date.html"); ins.load(); } catch(Exception e) { fail("The test case is a prototype."); } } }