本文整理汇总了Java中org.wikidata.wdtk.dumpfiles.DumpContentType.FULL属性的典型用法代码示例。如果您正苦于以下问题:Java DumpContentType.FULL属性的具体用法?Java DumpContentType.FULL怎么用?Java DumpContentType.FULL使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.wikidata.wdtk.dumpfiles.DumpContentType
的用法示例。
在下文中一共展示了DumpContentType.FULL属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: missingFullDumpProperties
@Test
public void missingFullDumpProperties() {
MwDumpFile dump = new WmfOnlineStandardDumpFile("20140210",
"wikidatawiki", wrf, dm, DumpContentType.FULL);
assertFalse(dump.isAvailable());
assertEquals("20140210", dump.getDateStamp());
}
示例2: emptyFullDumpIsDone
@Test
public void emptyFullDumpIsDone() throws IOException {
wrf.setWebResourceContentsFromResource(
"http://dumps.wikimedia.org/wikidatawiki/20140210/",
"/wikidatawiki-20140210-index.html", this.getClass());
MwDumpFile dump = new WmfOnlineStandardDumpFile("20140210",
"wikidatawiki", wrf, dm, DumpContentType.FULL);
assertFalse(dump.isAvailable());
assertEquals("20140210", dump.getDateStamp());
assertEquals(DumpContentType.FULL, dump.getDumpContentType());
}
示例3: downloadNoRevisionId
@Test(expected = IOException.class)
public void downloadNoRevisionId() throws IOException {
wrf.setWebResourceContents(
"http://dumps.wikimedia.org/wikidatawiki/20140210/wikidatawiki-20140210-pages-meta-current.xml.bz2",
"Line1");
wrf.setWebResourceContentsFromResource(
"http://dumps.wikimedia.org/wikidatawiki/20140210/wikidatawiki-20140210-md5sums.txt",
"/wikidatawiki-20140210-md5sums.txt", this.getClass());
MwDumpFile dump = new WmfOnlineStandardDumpFile("20140210",
"wikidatawiki", wrf, dm, DumpContentType.FULL);
dump.getDumpFileReader();
}
示例4: downloadNoMd5sum
@Test(expected = IOException.class)
public void downloadNoMd5sum() throws IOException {
wrf.setWebResourceContents(
"http://dumps.wikimedia.org/wikidatawiki/20140210/wikidatawiki-20140210-pages-meta-current.xml.bz2",
"Line1");
wrf.setWebResourceContentsFromResource(
"http://dumps.wikimedia.org/wikidatawiki/20140210/",
"/wikidatawiki-20140210-index.html", this.getClass());
MwDumpFile dump = new WmfOnlineStandardDumpFile("20140210",
"wikidatawiki", wrf, dm, DumpContentType.FULL);
dump.getDumpFileReader();
}