Newer
Older
talkCrawler / test / talkcrawler / DailyIndexTest.java
@haya4 haya4 on 4 Jun 2019 873 bytes Crawle動作に成功
package talkcrawler;

import static junit.framework.TestCase.fail;
import org.junit.Test;

public class DailyIndexTest {
    
    /**
     * Test of load method, of class MonthlyIndex.
     * 2014-August
     */
    @Test
    @SuppressWarnings("UseSpecificCatch")
    public void load_201903() {
        try {
            DailyIndex ins = new DailyIndex(MonthlyIndex.MONTHLY_INDEX, "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(MonthlyIndex.MONTHLY_INDEX, "2014-August", "date.html");
            ins.load();
        }
        catch(Exception e) {
            fail("The test case is a prototype.");
        }
    }

}