package com.formulasearchengine.mathosphere.mlp.text;

import com.google.common.collect.Lists;
import org.junit.Assert;
import org.junit.Test;

import java.util.ArrayList;

/**
 * Created by Moritz on 12.12.2015.
 */
public class WikidataInterfaceTest {

	@Test
	public void testGetEntities() throws Exception {
		final ArrayList<String> expected = Lists.newArrayList("Q12916");
		Assert.assertEquals(expected.get(0), WikidataInterface.getEntities("real number").get(0));
	}
}
@@ -88,16 +88,17 @@
 .Lists;%0A
+%0A
 import o
@@ -134,24 +134,62 @@
 unit.Test;%0A%0A
+import java.net.UnknownHostException;%0A
 import java.
@@ -291,16 +291,18 @@
  %7B%0A%0A
-%09
+  
 @Test%0A
-%09
+  
 publ
@@ -346,18 +346,20 @@
 ption %7B%0A
-%09%09
+    
 final Ar
@@ -419,10 +419,24 @@
 %22);%0A
-%09%09
+    try %7B%0A      
 Asse
@@ -526,8 +526,110 @@
 ));%0A
-%09
+    %7D catch (UnknownHostException h) %7B%0A      // TODO: Figure out how to mark a test as skipped%0A    %7D%0A  
 %7D%0A%7D

Make tests runnable offline