}
public void testOnline() throws InterruptedException {
{
OAI2Fetcher fetcher = new OAI2Fetcher();
be = fetcher.importOai2Entry("math.RA/0612188");
assertNotNull(be);
assertEquals("math/0612188", be.getField("eprint"));
assertEquals("On the classification and properties of noncommutative duplicates", be
.getField("title").toString());
assertEquals("Javier L�pez Pe�a and Gabriel Navarro", be.getField("author").toString());
assertEquals("2007", be.getField("year").toString());
Thread.sleep(20000);
}
{
OAI2Fetcher fetcher = new OAI2Fetcher();
be = fetcher.importOai2Entry("astro-ph/0702080");
assertNotNull(be);
assertEquals("astro-ph/0702080", be.getField("eprint"));
assertEquals(
"Magnetized Hypermassive Neutron Star Collapse: a candidate central engine for short-hard GRBs",
be.getField("title").toString());
Thread.sleep(20000);
}
{
OAI2Fetcher fetcher = new OAI2Fetcher();
be = fetcher.importOai2Entry("math.QA/0601001");
assertNotNull(be);
assertEquals("math/0601001", be.getField("eprint"));
Thread.sleep(20000);
}
{
OAI2Fetcher fetcher = new OAI2Fetcher();
be = fetcher.importOai2Entry("hep-ph/0408155");
assertNotNull(be);
assertEquals("hep-ph/0408155", be.getField("eprint"));
Thread.sleep(20000);
}
{
OAI2Fetcher fetcher = new OAI2Fetcher();
be = fetcher.importOai2Entry("0709.3040");
assertNotNull(be);
assertEquals("2007", be.getField("year"));
assertEquals("#sep#", be.getField("month"));
}