Skip to content

Commit

Permalink
- adding function to test new directory
Browse files Browse the repository at this point in the history
  • Loading branch information
emarx committed Jul 1, 2016
1 parent a3c8e66 commit d19c524
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions kbox.kibe.test/src/test/java/org/aksw/kbox/kibe/KBoxTest.java
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package org.aksw.kbox.kibe;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;

import org.aksw.kbox.kibe.KBox;
import org.aksw.kbox.kibe.tdb.TDBTest;
import org.junit.Test;

Expand All @@ -22,10 +22,16 @@ public void testPrintKBs() throws Exception {

@Test
public void testResolveURLWithKBoxKNSService() throws Exception {
URL db = KBox.resolveURL(new URL("http://dbpedia.org/en/full"));
URL db = KBox.resolveURL(new URL("http://dbpedia.org/3.9/en/full"));
assertEquals(db.toString(), "http://vmdbpedia.informatik.uni-leipzig.de:3030/kbox.kb");
}

@Test
public void testNewDir() throws Exception {
File f = KBox.newDir(new URL("http://dbpedia.org/en/full"));
assertTrue(f.getAbsolutePath().endsWith("en\\full"));
}

@Test
public void testInstallProcess() throws Exception {
File indexFile = new File("knowledgebase.idx");
Expand Down

0 comments on commit d19c524

Please sign in to comment.