From d3f565bfde567b76c487c1338c24f7108f40a302 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Mon, 10 Sep 2018 11:56:08 +0200
Subject: [PATCH] all unit tests can use cache query (unit tests will be run in
 clean db)

---
 .../services/DrugbankHTMLParserTest.java         | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/annotation/src/test/java/lcsb/mapviewer/annotation/services/DrugbankHTMLParserTest.java b/annotation/src/test/java/lcsb/mapviewer/annotation/services/DrugbankHTMLParserTest.java
index 61ce944136..8b8b43403b 100644
--- a/annotation/src/test/java/lcsb/mapviewer/annotation/services/DrugbankHTMLParserTest.java
+++ b/annotation/src/test/java/lcsb/mapviewer/annotation/services/DrugbankHTMLParserTest.java
@@ -14,15 +14,12 @@ import java.util.ArrayList;
 import java.util.List;
 
 import org.apache.log4j.Logger;
-import org.junit.After;
-import org.junit.Before;
 import org.junit.Test;
 import org.mockito.Mockito;
 import org.springframework.beans.factory.annotation.Autowired;
 
 import lcsb.mapviewer.annotation.AnnotationTestFunctions;
 import lcsb.mapviewer.annotation.cache.GeneralCacheInterface;
-import lcsb.mapviewer.annotation.cache.GeneralCacheWithExclusion;
 import lcsb.mapviewer.annotation.cache.SourceNotAvailable;
 import lcsb.mapviewer.annotation.cache.WebPageDownloader;
 import lcsb.mapviewer.annotation.data.Drug;
@@ -40,19 +37,6 @@ public class DrugbankHTMLParserTest extends AnnotationTestFunctions {
   @Autowired
   private DrugbankHTMLParser drugBankHTMLParser;
 
-  @Autowired
-  private GeneralCacheInterface cache;
-
-  @Before
-  public void setUp() throws Exception {
-    drugBankHTMLParser.setCache(new GeneralCacheWithExclusion(cache, 1));
-  }
-
-  @After
-  public void tearDown() throws Exception {
-    drugBankHTMLParser.setCache(cache);
-  }
-
   @Test
   public void test1FindDrug() throws Exception {
     try {
-- 
GitLab