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.Test;
import tool.http.Post;
public class ArticleTest {
TalkCrawlerProperties prop = new TalkCrawlerProperties();
protected void setUp(){
try {
prop.load();
} catch (IOException ex) {
Logger.getLogger(DailyIndexTest.class.getName()).log(Level.SEVERE, null, ex);
}
}
@Test
@SuppressWarnings("UseSpecificCatch")
public void test2019_01_010424() {
try {
Article ins = new Article(prop.getProperty("MONTHLY_INDEX"), "2019-January", "010424");
ins.load();
new Post(prop).post(Article.toJsonArray(ins.toJsonObject()));
}
catch (Exception e) {
fail();
}
}
/**
* https://lists.openstreetmap.org/pipermail/talk-ja/2014-August/008473.html
*/
@Test
@SuppressWarnings("UseSpecificCatch")
public void test2014_08_008473() {
try {
Article ins = new Article(prop.getProperty("MONTHLY_INDEX"), "2014-August", "008473");
ins.load();
new Post(prop).post(Article.toJsonArray(ins.toJsonObject()));
}
catch (Exception e) {
fail();
}
}
/**
* https://lists.openstreetmap.org/pipermail/talk-ja/2014-August/008479.html
*/
@Test
@SuppressWarnings("UseSpecificCatch")
public void test2014_08_008479() {
try {
Article ins = new Article(prop.getProperty("MONTHLY_INDEX"), "2014-August", "008479");
ins.load();
new Post(prop).post(Article.toJsonArray(ins.toJsonObject()));
}
catch (Exception e) {
fail();
}
}
/**
* https://lists.openstreetmap.org/pipermail/talk-ja/2014-August/008480.html
* <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
*/
@Test
@SuppressWarnings("UseSpecificCatch")
public void test2014_08_008480() {
try {
Article ins = new Article(prop.getProperty("MONTHLY_INDEX"), "2014-August", "008480");
ins.load();
new Post(prop).post(Article.toJsonArray(ins.toJsonObject()));
}
catch (Exception e) {
fail();
}
}
/**
* https://lists.openstreetmap.org/pipermail/talk-ja/2008-March/date.html
*/
@Test
@SuppressWarnings("UseSpecificCatch")
public void test2008_03_000000() {
try {
Article ins = new Article(prop.getProperty("MONTHLY_INDEX"), "2008-March", "000000");
ins.load();
new Post(prop).post(Article.toJsonArray(ins.toJsonObject()));
}
catch (Exception e) {
fail();
}
}
}