diff --git a/annotation/src/main/java/lcsb/mapviewer/annotation/services/annotators/EntrezAnnotator.java b/annotation/src/main/java/lcsb/mapviewer/annotation/services/annotators/EntrezAnnotator.java index 7e865e7f7a3e40c024298d24044d67b7609bb266..5e4aea0bcb6267bcfbf9c4ddb64ee54ff6a256eb 100644 --- a/annotation/src/main/java/lcsb/mapviewer/annotation/services/annotators/EntrezAnnotator.java +++ b/annotation/src/main/java/lcsb/mapviewer/annotation/services/annotators/EntrezAnnotator.java @@ -49,12 +49,6 @@ import lcsb.mapviewer.modelutils.map.ElementUtils; @Service public class EntrezAnnotator extends ElementAnnotator implements IExternalService { - /** - * Prefix used in cache key to indicate that cached value contains information - * about {@link MiriamType#ENTREZ} to {@link MiriamType#HGNC} conviersion. - */ - public static final String CACHE_HGNC_ID_PREFIX = "HGNC_ID:"; - /** * Address of Entrez API that should be used for retrieving data. */ diff --git a/annotation/src/test/java/lcsb/mapviewer/annotation/services/annotators/EntrezAnnotatorTest.java b/annotation/src/test/java/lcsb/mapviewer/annotation/services/annotators/EntrezAnnotatorTest.java index 372b83567d2e6b716f3d7ecb08047915088fc89f..243be0a84216996ee47e248c4aed7e5683846390 100644 --- a/annotation/src/test/java/lcsb/mapviewer/annotation/services/annotators/EntrezAnnotatorTest.java +++ b/annotation/src/test/java/lcsb/mapviewer/annotation/services/annotators/EntrezAnnotatorTest.java @@ -172,30 +172,6 @@ public class EntrezAnnotatorTest extends AnnotationTestFunctions { } } - @Test(timeout = 15000) - public void testRefreshToHgncConversion() throws Exception { - GeneralCacheInterface cache = entrezAnnotator.getCache(); - try { - entrezAnnotator.setCache(null); - assertNull(entrezAnnotator.refreshCacheQuery(EntrezAnnotator.CACHE_HGNC_ID_PREFIX + "blablabla")); - } catch (Exception e) { - e.printStackTrace(); - throw e; - } finally { - entrezAnnotator.setCache(cache); - } - } - - @Test(timeout = 60000) - public void testRefreshToHgncConversion2() throws Exception { - try { - assertNotNull(entrezAnnotator.refreshCacheQuery(EntrezAnnotator.CACHE_HGNC_ID_PREFIX + "6647")); - } catch (Exception e) { - e.printStackTrace(); - throw e; - } - } - @Test public void testRefreshInvalidCacheQuery() throws Exception { try {