From b40989f111b317869305bf62896f3303d2c37f1a Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Mon, 21 Aug 2023 13:23:41 +0200
Subject: [PATCH] missing libraries added (needed on linking stage)

---
 .gitlab-ci.yml                                                 | 2 +-
 .../test/java/lcsb/mapviewer/cdplugin/info/InfoFrameTest.java  | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b0b06e39e4..3af8920c8f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -76,7 +76,7 @@ test:frontend:
   script: &test_backend_CellDesigner_plugin_definition
 #xvfb is for X11 connection used by some parts of the java code: https://stackoverflow.com/a/47575851/1127920
     - apt-get update
-    - apt-get install -y xvfb
+    - apt-get install -y xvfb libxext6 libxrender1 libxtst6
     - Xvfb :99 &
     - export DISPLAY=:99
 
diff --git a/CellDesigner-plugin/src/test/java/lcsb/mapviewer/cdplugin/info/InfoFrameTest.java b/CellDesigner-plugin/src/test/java/lcsb/mapviewer/cdplugin/info/InfoFrameTest.java
index 320d311eeb..29aea97437 100644
--- a/CellDesigner-plugin/src/test/java/lcsb/mapviewer/cdplugin/info/InfoFrameTest.java
+++ b/CellDesigner-plugin/src/test/java/lcsb/mapviewer/cdplugin/info/InfoFrameTest.java
@@ -7,7 +7,6 @@ import java.util.Arrays;
 import java.util.List;
 
 import org.junit.Test;
-import org.mockito.Mockito;
 
 import jp.sbi.celldesigner.plugin.PluginSpeciesAlias;
 import lcsb.mapviewer.cdplugin.CdPluginFunctions;
@@ -25,8 +24,6 @@ public class InfoFrameTest extends CdPluginFunctions {
   @Test
   public void testSetNotEmptySpeciesList() {
     InfoFrame frame = InfoFrame.getInstance();
-    frame = Mockito.spy(frame);
-    Mockito.doReturn(null).when(frame).getCaptionFont();
     frame.setSpecies(Arrays.asList(super.createSpeciesAlias("id"), super.createSpeciesAlias("id2")));
     assertEquals(2, frame.getSpecies().size());
   }
-- 
GitLab