Commit d19c524 emarx
committed
1 parent a3c8e66 commit d19c524 Copy full SHA for d19c524
File tree 1 file changed +8
-2
lines changed
kbox.kibe.test/src/test/java/org/aksw/kbox/kibe
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
package org .aksw .kbox .kibe ;
2
2
3
3
import static org .junit .Assert .assertEquals ;
4
+ import static org .junit .Assert .assertTrue ;
4
5
5
6
import java .io .File ;
6
7
import java .net .MalformedURLException ;
7
8
import java .net .URL ;
8
9
9
- import org .aksw .kbox .kibe .KBox ;
10
10
import org .aksw .kbox .kibe .tdb .TDBTest ;
11
11
import org .junit .Test ;
12
12
@@ -22,10 +22,16 @@ public void testPrintKBs() throws Exception {
22
22
23
23
@ Test
24
24
public void testResolveURLWithKBoxKNSService () throws Exception {
25
- URL db = KBox .resolveURL (new URL ("http://dbpedia.org/en/full" ));
25
+ URL db = KBox .resolveURL (new URL ("http://dbpedia.org/3.9/ en/full" ));
26
26
assertEquals (db .toString (), "http://vmdbpedia.informatik.uni-leipzig.de:3030/kbox.kb" );
27
27
}
28
28
29
+ @ Test
30
+ public void testNewDir () throws Exception {
31
+ File f = KBox .newDir (new URL ("http://dbpedia.org/en/full" ));
32
+ assertTrue (f .getAbsolutePath ().endsWith ("en\\ full" ));
33
+ }
34
+
29
35
@ Test
30
36
public void testInstallProcess () throws Exception {
31
37
File indexFile = new File ("knowledgebase.idx" );
You can’t perform that action at this time.
0 commit comments