commit b14ebc2454a559652ad7b4cec1f24ce8f43c5f86
Author: Patrik Harag <patrikharag@gmail.com>
Date:   Sat Apr 13 22:45:42 2019 +0200

    Remove obsolete selenium tests (#7266)

diff --git a/sources/imiger-core/pom.xml b/sources/imiger-core/pom.xml
index 28316e5..9a5cfc4 100644
--- a/sources/imiger-core/pom.xml
+++ b/sources/imiger-core/pom.xml
@@ -160,15 +160,9 @@
 
         <!-- testing -->
         <dependency>
-            <groupId>org.seleniumhq.selenium</groupId>
-            <artifactId>selenium-java</artifactId>
-            <version>3.12.0</version>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.junit.jupiter</groupId>
-            <artifactId>junit-jupiter-api</artifactId>
-            <version>5.3.2</version>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.12</version>
             <scope>test</scope>
         </dependency>
 
diff --git a/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/ArchetypeIconConfigTest.java b/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/ArchetypeIconConfigTest.java
deleted file mode 100644
index d876d29..0000000
--- a/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/ArchetypeIconConfigTest.java
+++ /dev/null
@@ -1,84 +0,0 @@
-package cz.zcu.kiv.imiger.tests.frontend;
-
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
-import org.junit.jupiter.api.AfterAll;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.BeforeAll;
-import org.junit.jupiter.api.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-
-class ArchetypeIconConfigTest {
-    private static final Logger logger = LogManager.getLogger();
-    private static WebDriver browser;
-
-    @BeforeAll
-    static void initTest() {
-        SeleniumUtil.prepareConfigFile("archetypeIconConfigTest.json");
-        browser = SeleniumUtil.init();
-        SeleniumUtil.switchToRaw();
-        SeleniumUtil.loadGraphData("RawArchetypeIconTest.json");
-    }
-
-    @Test
-    void SpecifiedValueDefinition(){
-        WebElement iconDef = browser.findElement(By.id("vertexArchetypeIcon-SpecifiedIcon"));
-
-        logger.debug("Trying to locate an element with class 'testingArchetypeIcon'");
-        iconDef.findElement(By.className("testingArchetypeIcon"));
-        logger.debug("Element found.");
-    }
-
-    @Test
-    void UnspecifiedValueDefinition(){
-        emptyIconDefinition("UnspecifiedIcon");
-    }
-
-    @Test
-    void SmileyValueDefinition(){
-        emptyIconDefinition("☺Smiley");
-    }
-
-    @Test
-    void SpecifiedIcon(){
-        locateTestingArchetypeIcon("1","#vertexArchetypeIcon-SpecifiedIcon");
-    }
-
-    @Test
-    void UnspecifiedIcon(){
-        locateTestingArchetypeIcon("2","#vertexArchetypeIcon-UnspecifiedIcon");
-    }
-
-    @Test
-    void SmileyIcon(){
-        locateTestingArchetypeIcon("3","#vertexArchetypeIcon-☺Smiley");
-    }
-
-    /**
-     * Utility method for checking of the presence of the specified icon element
-     * @param elementId Id of the element in which the search is done
-     * @param expectedHref expected href to icon in founded element
-     */
-    private void locateTestingArchetypeIcon(String elementId, String expectedHref) {
-        WebElement icon = browser.findElement(By.cssSelector("[data-id='vertices']"))
-                .findElement(By.cssSelector("[data-id='" + elementId + "']"))
-                .findElement(By.className("archetype-icon"));
-
-        Assertions.assertEquals(expectedHref, icon.getAttribute("href"));
-    }
-
-    private void emptyIconDefinition(String iconName){
-        WebElement iconDef = browser.findElement(By.id("vertexArchetypeIcon-" + iconName))
-                .findElement(By.tagName("text"));
-
-        logger.debug("Testing if icon contains specific text");
-        Assertions.assertEquals(iconName.substring(0,1), iconDef.getText());
-    }
-
-    @AfterAll
-    static void finishTest() {
-        SeleniumUtil.clear();
-    }
-}
diff --git a/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/AssociatedArchetypeTest.java b/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/AssociatedArchetypeTest.java
deleted file mode 100644
index 0880790..0000000
--- a/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/AssociatedArchetypeTest.java
+++ /dev/null
@@ -1,138 +0,0 @@
-package cz.zcu.kiv.imiger.tests.frontend;
-
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
-import org.junit.jupiter.api.AfterAll;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.BeforeAll;
-import org.junit.jupiter.api.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-
-import java.util.Arrays;
-import java.util.List;
-
-
-class AssociatedArchetypeTest {
-    private static final Logger logger = LogManager.getLogger();
-    private static WebDriver browser;
-
-    @BeforeAll
-    static void initTest() {
-        SeleniumUtil.prepareConfigFile("emptyConfig.json");
-        browser = SeleniumUtil.init();
-        SeleniumUtil.switchToRaw();
-        SeleniumUtil.loadGraphData("RawAssociatedArchetypeTest.json");
-    }
-
-    @Test
-    void visibilityOfAllIcons() {
-        checkVisibilityOfIcons("1", Arrays.asList("2", "4"), Arrays.asList("2", "4"));
-
-        checkVisibilityOfIcons("2", Arrays.asList("1"), Arrays.asList("1"));
-
-        checkVisibilityOfIcons("3", Arrays.asList("1"),Arrays.asList("1"));
-
-        checkVisibilityOfIcons("4", Arrays.asList("1", "3"), Arrays.asList("1", "3"));
-
-        checkVisibilityOfIcons("5", Arrays.asList("4"), Arrays.asList("4"));
-    }
-
-    @Test
-    void vertexHighlighting() {
-        //associated vertices to V1
-        checkHighlightedVertices("1", "2", Arrays.asList("2", "3"));
-        checkHighlightedVertices("1", "4", Arrays.asList("4"));
-
-        //associated vertices to V2
-        checkHighlightedVertices("2", "1", Arrays.asList("1"));
-
-        //associated vertices to V3
-        checkHighlightedVertices("3", "1", Arrays.asList("1"));
-
-        //associated vertices to V4
-        checkHighlightedVertices("4", "1", Arrays.asList("1"));
-        checkHighlightedVertices("4", "3", Arrays.asList("5"));
-
-        //associated vertices to V5
-        checkHighlightedVertices("5", "4", Arrays.asList("4"));
-    }
-
-    /**
-     * Check if all the expected associated archetype icons are present
-     * @param elementId Id of the vertex in the DOM
-     * @param expectedArchetypes names of expected archetypes
-     * @param expectedArchetypeIconTexts Texts of all the associated archetype icons that are expected to occur
-     */
-    private void checkVisibilityOfIcons(String elementId, List<String> expectedArchetypes, List<String> expectedArchetypeIconTexts) {
-        logger.debug("Checking element " + elementId);
-        WebElement vertex = browser.findElement(By.cssSelector("[data-id='vertices']"))
-                .findElement(By.cssSelector("[data-id='" + elementId + "']"));
-
-        List<WebElement> associatedArchetypeIcons = vertex.findElement(By.tagName("g")).
-                findElements(By.className("archetype-icon"));
-
-        logger.debug("Associated archetypes: \n");
-        Assertions.assertEquals(associatedArchetypeIcons.size(), expectedArchetypeIconTexts.size());
-
-        for (int i = 0; i < expectedArchetypeIconTexts.size(); i++) {
-            WebElement icon = associatedArchetypeIcons.get(i);
-
-            String iconHref = icon.getAttribute("href");
-            logger.debug("Icon href: " + iconHref+"\n");
-            Assertions.assertEquals("#vertexArchetypeIcon-" + expectedArchetypes.get(i), iconHref);
-
-
-            WebElement iconDef = browser.findElement(By.id("vertexArchetypeIcon-" + expectedArchetypes.get(i)));
-
-            logger.debug("Testing if icon contains specific text");
-            Assertions.assertEquals(expectedArchetypeIconTexts.get(i), iconDef.getText());
-        }
-    }
-
-    /**
-     * Check if all the expected vertices are highlighted when clicking on the associated archetype icon
-     * @param vertexId Id of the vertex in viewport
-     * @param archetypeName name of associated archetype
-     * @param expectedHighlightedVertexIds Ids of all the vertices that are expected to be highlighted
-     */
-    private void checkHighlightedVertices(String vertexId, String archetypeName, List<String> expectedHighlightedVertexIds) {
-        logger.debug("\nChecking associated vertices of vertex: " + vertexId + " for archetype icon with : " + archetypeName);
-
-        WebElement vertex = browser.findElement(By.cssSelector("[data-id='vertices']"))
-                .findElement(By.cssSelector("[data-id='" + vertexId + "']"));
-
-        List<WebElement> associatedArchetypeIcons = vertex.findElement(By.tagName("g")).
-                findElements(By.className("archetype-icon"));
-
-        WebElement associatedArchetypeIcon = null;
-        for (WebElement icon : associatedArchetypeIcons) {
-            if(icon.getAttribute("href").endsWith(archetypeName)) {
-                associatedArchetypeIcon = icon;
-                break;
-            }
-        }
-        Assertions.assertNotNull(associatedArchetypeIcon);
-        SeleniumUtil.svgClick(associatedArchetypeIcon);
-
-        List<WebElement> highlightedVertices = browser.findElements(By.className("node--highlighted-archetype"));
-
-        logger.debug("Number of highlighted vertices: " + highlightedVertices.size());
-        Assertions.assertEquals(expectedHighlightedVertexIds.size(), highlightedVertices.size());
-
-        for(int i = 0; i < highlightedVertices.size(); i++) {
-            String id = highlightedVertices.get(i).getAttribute("data-id");
-            logger.debug(id);
-
-            Assertions.assertEquals(expectedHighlightedVertexIds.get(i), id);
-        }
-
-        SeleniumUtil.svgClick(associatedArchetypeIcon);
-    }
-
-    @AfterAll
-    static void finishTest() {
-        SeleniumUtil.clear();
-    }
-}
diff --git a/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/AutomaticGroupingTest.java b/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/AutomaticGroupingTest.java
deleted file mode 100644
index 918316c..0000000
--- a/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/AutomaticGroupingTest.java
+++ /dev/null
@@ -1,79 +0,0 @@
-package cz.zcu.kiv.imiger.tests.frontend;
-
-import org.junit.jupiter.api.*;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-
-import java.util.ArrayList;
-import java.util.List;
-
-class AutomaticGroupingTest {
-    private static WebDriver browser;
-
-    @BeforeEach
-    void initTest() {
-        SeleniumUtil.prepareConfigFile("automaticGroupingConfigTest.json");
-        browser = SeleniumUtil.init();
-        SeleniumUtil.loadGraphData("automaticGroupingTest.json");
-    }
-
-    @Test
-    void groupIncluded(){
-        String groupName = "FirstGroupArchetype";
-        checkGroupExist(browser, groupName);
-    }
-
-    @Test
-    void groupExcluded(){
-        String groupName = "FirstGroupArchetype";
-        List<String> verticesNames = new ArrayList<>();
-        verticesNames.add("First vertex from first group");
-        verticesNames.add("Second vertex from first group");
-
-        excludeFirstGroup(browser);
-        checkExcludedGroup(browser, groupName, verticesNames);
-    }
-
-    private void checkGroupExist(WebDriver browser, String groupName){
-        List<WebElement> groups = browser.findElement(By.cssSelector("[data-id='groups']"))
-                .findElements(By.className("node"));
-
-        Assertions.assertEquals(1, groups.size());
-
-        String actualGroupName = groups.get(0).findElement(By.tagName("foreignObject"))
-                .findElement(By.className("group-name")).getText();
-
-        Assertions.assertEquals(groupName, actualGroupName);
-    }
-
-    private void checkExcludedGroup(WebDriver browser, String groupName, List<String> verticesTexts){
-        List<WebElement> nodes = browser.findElement(By.id("excludedNodeListComponent"))
-                .findElement(By.className("node-list"))
-                .findElements(By.tagName("li"));
-
-        Assertions.assertEquals(3, nodes.size());
-        WebElement group = nodes.get(0);
-
-        String actualGroupName = group.findElement(By.className("group-name")).getText();
-        Assertions.assertEquals(groupName, actualGroupName);
-
-        for(int i = 1; i < nodes.size(); i ++){
-            Assertions.assertTrue(verticesTexts.contains(nodes.get(i).getText()));
-        }
-    }
-
-    private void excludeFirstGroup(WebDriver browser){
-        SeleniumUtil.switchToExcludeMode();
-
-        List<WebElement> groups = browser.findElement(By.cssSelector("[data-id='groups']"))
-                .findElements(By.className("node"));
-
-        SeleniumUtil.svgRectClick(groups.get(0));
-    }
-
-    @AfterEach
-    void finishTest() {
-        SeleniumUtil.clear();
-    }
-}
diff --git a/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/DetailsTest.java b/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/DetailsTest.java
deleted file mode 100644
index bcf4dae..0000000
--- a/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/DetailsTest.java
+++ /dev/null
@@ -1,69 +0,0 @@
-package cz.zcu.kiv.imiger.tests.frontend;
-
-import org.junit.jupiter.api.AfterAll;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.BeforeAll;
-import org.junit.jupiter.api.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-
-class DetailsTest {
-
-    private static WebDriver browser;
-
-    @BeforeAll
-    static void initTest() {
-        SeleniumUtil.prepareConfigFile("emptyConfig.json");
-        browser = SeleniumUtil.init();
-        SeleniumUtil.switchToRaw();
-        SeleniumUtil.loadGraphData("RawDetailTest.json");
-    }
-
-    @Test
-    void vertexDetail(){
-        checkPopover(vertexPopover("V1"),"V1 (3)\nD: E\nB: W\nA: Q");
-
-        checkPopover(vertexPopover("V2"),"V2 (2)\nD: E\nC: Q\nB: W");
-
-        checkPopover(vertexPopover("V3"),"V3 (1)\nD: Q\nC: W\nA: E");
-    }
-
-    @Test
-    void edgeDetail() {
-        checkPopover(edgePopover("1"),"Edge details\nedgeArchetype1\nD: E\nC: W");
-
-        checkPopover(edgePopover("2"),"Edge details\nedgeArchetype1\nD: E\nB: W\nA: Q\nedgeArchetype2\nD: D\nB: S\nA: A");
-
-        checkPopover(edgePopover("3"),"Edge details\nedgeArchetype2\nC: T\nB: R");
-    }
-
-
-    private WebElement edgePopover(String edgeId) {
-        WebElement arrow = browser.findElement(By.cssSelector("[data-id='edges']"))
-                .findElement(By.cssSelector("[data-id='" + edgeId + "']"))
-                .findElement(By.className("arrow"));
-
-        SeleniumUtil.svgClickWithOffset(arrow, 3, 0);
-        return browser.findElement(By.className("edge-popover"));
-    }
-
-    private WebElement vertexPopover(String vertexElementName) {
-        WebElement archetypeIcon = browser.findElement(By.cssSelector("[data-id='vertices']"))
-                .findElement(By.cssSelector("[data-name='" + vertexElementName + "']"))
-                .findElement(By.className("archetype-icon"));
-
-        SeleniumUtil.svgClick(archetypeIcon);
-        return browser.findElement(By.className("vertex-popover"));
-    }
-
-    private void checkPopover(WebElement popoverElement, String expectedText) {
-        String text = popoverElement.getText();
-        Assertions.assertEquals(expectedText, text);
-    }
-
-    @AfterAll
-    static void finishTest() {
-        SeleniumUtil.clear();
-    }
-}
diff --git a/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/GroupStatsChangingTest.java b/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/GroupStatsChangingTest.java
deleted file mode 100644
index 93c437d..0000000
--- a/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/GroupStatsChangingTest.java
+++ /dev/null
@@ -1,149 +0,0 @@
-package cz.zcu.kiv.imiger.tests.frontend;
-
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
-import org.junit.jupiter.api.AfterAll;
-import org.junit.jupiter.api.Assertions;
-import org.junit.jupiter.api.BeforeAll;
-import org.junit.jupiter.api.Test;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-
-import java.util.*;
-
-class GroupStatsChangingTest {
-    private static final Logger logger = LogManager.getLogger();
-    private static WebDriver browser;
-
-    @BeforeAll
-    static void initTest() {
-        SeleniumUtil.prepareConfigFile("emptyConfig.json");
-        browser = SeleniumUtil.init();
-        SeleniumUtil.switchToRaw();
-        SeleniumUtil.loadGraphData("RawAssociatedArchetypeTest.json");
-    }
-
-    @Test
-    void ChangingStats() {
-        String groupId;
-        SeleniumUtil.switchToExcludeMode();
-        WebElement firstExcludedVertex = browser.findElement(By.cssSelector("[data-id='vertices']"))
-                .findElement(By.cssSelector("[data-id='3']"));
-
-        SeleniumUtil.svgRectClick(firstExcludedVertex);
-        logger.debug("Exclude vertex3 to group as first vertex of group");
-
-        excludeToExistingGroup("2");
-        logger.debug("Exclude vertex2 to group");
-
-        //get data-id of fgroup
-        groupId = browser.findElement(By.id("excludedNodeListComponent"))
-                .findElement(By.className("node")).getAttribute("data-id");
-
-        Map<String, String> map = new HashMap<>();
-        map.put("1", "2");
-        map.put("3", "1");
-        compareExpectedValues(groupId, map);
-
-//        EXCLUDING VERTICES FROM GROUPS IS NOT SUPPORTED YET
-//        excludeToExistingGroup("1");
-//        compareExpectedValues(groupId, new ArrayList<String>(Arrays.asList("2","2","0","2")));
-//        logger.debug("Exclude vertex1 to group");
-//
-//        logger.debug("Remove vertex2 to group");
-//        removeVertexFromGroup("li2");
-//        compareExpectedValues(groupId, new ArrayList<String>(Arrays.asList("1","2","0","2")));
-//
-//        logger.debug("Switch off stats for vertex1");
-//        toogleVertexInGroup("li1");
-//        compareExpectedValues(groupId, new ArrayList<String>(Arrays.asList("1","0","0","0")));
-//
-//        logger.debug("Switch off stats for vertex3");
-//        toogleVertexInGroup("li3");
-//        compareExpectedValues(groupId, new ArrayList<String>(Arrays.asList("0","0","0","0")));
-//
-//        logger.debug("Switch on stats for vertex1");
-//        toogleVertexInGroup("li3");
-//        excludeToExistingGroup("vertex2");
-//        compareExpectedValues(groupId, new ArrayList<String>(Arrays.asList("2","0","0","0")));
-//
-//        //finaly test just one vertex in group
-//        String archetypePrefix = "v_archetype_4_";
-//        SeleniumUtil.switchToExcludeMode();
-//        WebElement singleEcludedVertex = browser.findElement(By.id("vertex4"));
-//        logger.debug("Exclude vertex4 to group as first vertex of group");
-//        SeleniumUtil.svgClick(singleEcludedVertex);
-//
-//        logger.debug("Checking group statistics");
-//        String actualValue1 = browser.findElement(By.id(archetypePrefix + "0")).findElement(By.tagName("text")).getText();
-//        String actualValue2 = browser.findElement(By.id(archetypePrefix + "2")).findElement(By.tagName("text")).getText();
-//        Assertions.assertEquals(actualValue1, "2");
-//        Assertions.assertEquals(actualValue2, "1");
-//
-//        logger.debug("Expected: 2 - Real: " + actualValue1);
-//        logger.debug("Expected: 1 - Real: " + actualValue2);
-
-    }
-
-    /**
-     * Exclude vertex from graph to group
-     * @param vertexId id of vertex to exclude
-     */
-    private void excludeToExistingGroup(String vertexId){
-        WebElement secondExcludedVertex = browser.findElement(By.cssSelector("[data-id='vertices']"))
-                .findElement(By.cssSelector("[data-id='" + vertexId + "']"));
-
-        SeleniumUtil.svgContextClick(secondExcludedVertex.findElement(By.tagName("rect")));
-        WebElement selectedGroup = browser.findElement(By.className("context-menu")).findElements(By.tagName("li")).get(0);
-        selectedGroup.click();
-    }
-
-    /**
-     * Remove vertex from group back to graph
-     * @param vertexId id of vertex
-     */
-    private void removeVertexFromGroup(String vertexId){
-        WebElement removeVertex = browser.findElement(By.id(vertexId)).findElement(By.className("deleteItemGroup"));
-        SeleniumUtil.svgClick(removeVertex);
-    }
-
-    /**
-     * Toogle stats for vertex
-     * @param vertexId id of vertex
-     */
-    private void toogleVertexInGroup(String vertexId){
-        WebElement removeVertex = browser.findElement(By.id(vertexId)).findElement(By.className("toggleStat"));
-        SeleniumUtil.svgClick(removeVertex);
-    }
-
-    /**
-     * comparison of real values with expected values
-     * @param groupId id of group
-     * @param expectedValues list of expected values
-     */
-    private void compareExpectedValues(String groupId, Map<String, String> expectedValues){
-        logger.debug("Checking group statistics");
-        String archetypePrefix = "#vertexArchetypeIcon-";
-
-        WebElement nodeList = browser.findElement(By.id("excludedNodeListComponent"))
-                .findElement(By.className("node-list"));
-
-        for (String key : expectedValues.keySet()) {
-
-            List<WebElement> gList = nodeList.findElement(By.cssSelector("[href='" + archetypePrefix + key + "']"))
-                    .findElements(By.xpath("//parent::*[name()='g']"));
-
-
-            String actualValue = gList.get(gList.size() - 1)
-                    .findElement(By.tagName("text")).getText();
-
-            Assertions.assertEquals(actualValue, expectedValues.get(key));
-        }
-    }
-
-    @AfterAll
-    static void finishTest() {
-        SeleniumUtil.clear();
-    }
-}
diff --git a/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/SeleniumUtil.java b/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/SeleniumUtil.java
deleted file mode 100644
index 2895759..0000000
--- a/sources/imiger-core/src/test/java/cz/zcu/kiv/imiger/tests/frontend/SeleniumUtil.java
+++ /dev/null
@@ -1,139 +0,0 @@
-package cz.zcu.kiv.imiger.tests.frontend;
-
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
-import org.openqa.selenium.By;
-import org.openqa.selenium.WebDriver;
-import org.openqa.selenium.WebElement;
-import org.openqa.selenium.firefox.FirefoxDriver;
-import org.openqa.selenium.interactions.Actions;
-import org.openqa.selenium.support.ui.ExpectedConditions;
-import org.openqa.selenium.support.ui.WebDriverWait;
-
-import java.io.IOException;
-import java.nio.file.Files;
-import java.nio.file.Paths;
-
-class SeleniumUtil {
-    private static final Logger logger = LogManager.getLogger();
-    private static final String TEST_DIRECTORY = System.getProperty("user.dir") + "\\src\\test\\resources";
-
-    /**
-     * Path to the config location folder
-     * Path should be the same as in web.xml file
-     * Please change to your location
-     */
-    private static final String APP_CONFIG_LOCATION = "C:\\Users\\Tomas\\Sources\\swi\\IMiGEr\\config";
-
-    private static final String GECKO_PATH = TEST_DIRECTORY + "\\geckodriver.exe";
-
-    private static final String URL = "http://localhost:8080/imiger/";
-
-    private static final int DATA_LOAD_TIMEOUT = 20;
-
-    private static WebDriver browser;
-
-    static WebDriver init() {
-        System.setProperty("webdriver.gecko.driver", GECKO_PATH);
-        browser = new FirefoxDriver();
-        browser.get(URL);
-        return browser;
-    }
-
-    static void loadGraphData(String filename) {
-        WebElement fileInput = browser.findElement(By.id("file"));
-        fileInput.sendKeys(TEST_DIRECTORY + "\\data\\" + filename );
-        browser.findElement(By.id("btnLoad")).click();
-
-        WebDriverWait wait = new WebDriverWait(browser, DATA_LOAD_TIMEOUT);
-        wait.until(ExpectedConditions.presenceOfElementLocated(By.id("viewport")));
-
-        try {
-            Thread.sleep(1000);
-        } catch (InterruptedException e) {
-            logger.warn("Thread.sleep caused exception: ", e);
-        }
-    }
-
-    static void prepareConfigFile(String configFile) {
-        try {
-            Files.deleteIfExists(Paths.get(APP_CONFIG_LOCATION + "\\config.json"));
-            Files.createLink(Paths.get(APP_CONFIG_LOCATION + "\\config.json"),
-                    Paths.get(TEST_DIRECTORY + "\\config\\" + configFile));
-        } catch (IOException e) {
-            logger.error("Can not prepare configuration file: ", e);
-        }
-    }
-
-    static void switchToRaw(){
-        browser.findElement(By.id("raw")).click();
-    }
-
-    /**
-     * Turn on exclude mode for vertex exclude
-     */
-    static void switchToExcludeMode(){
-        browser.findElement(By.id("exclude")).click();
-
-        try {
-            Thread.sleep(1000);
-        } catch (InterruptedException e) {
-            logger.warn("Thread.sleep caused exception: ", e);
-        }
-    }
-
-    static void svgRectClick(WebElement toClick){
-        toClick.findElement(By.tagName("rect")).click();
-
-        try {
-            Thread.sleep(1000);
-        } catch (InterruptedException e) {
-            logger.warn("Thread.sleep caused exception: ", e);
-        }
-    }
-
-    static void svgRectContextClick(WebElement toClick){
-        Actions builder = new Actions(browser);
-        builder.contextClick(toClick.findElement(By.tagName("rect"))).build().perform();
-
-        try {
-            Thread.sleep(1000);
-        } catch (InterruptedException e) {
-            logger.warn("Thread.sleep caused exception: ", e);
-        }
-    }
-
-    static void svgClick(WebElement toClick) {
-        svgClickWithOffset(toClick, 0, 0);
-    }
-
-    static void svgClickWithOffset(WebElement toClick, int xOffset, int yOffset) {
-        Actions builder = new Actions(browser);
-        builder.moveToElement(toClick).moveByOffset(xOffset,yOffset).click().build().perform();
-
-        try {
-            Thread.sleep(1000);
-        } catch (InterruptedException e) {
-            logger.warn("Thread.sleep caused exception: ", e);
-        }
-    }
-
-    /**
-     * Right mouse click
-     * @param toClick element for click
-     */
-    static void svgContextClick(WebElement toClick) {
-        Actions builder = new Actions(browser);
-        builder.moveToElement(toClick).contextClick().build().perform();
-
-        try {
-            Thread.sleep(1000);
-        } catch (InterruptedException e) {
-            logger.warn("Thread.sleep caused exception: ", e);
-        }
-    }
-
-    static void clear() {
-        browser.close();
-    }
-}
diff --git a/sources/imiger-core/src/test/resources/config/archetypeIconConfigTest.json b/sources/imiger-core/src/test/resources/config/archetypeIconConfigTest.json
deleted file mode 100644
index cf9de0d..0000000
--- a/sources/imiger-core/src/test/resources/config/archetypeIconConfigTest.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
-  "defaultFilter": {
-    "vertexArchetypeFilter": {
-      "archetypes": [ ],
-      "matchType": "non_matching"
-    },
-
-    "edgeArchetypeFilter": {
-      "archetypes": [
-        
-      ],
-      "matchType": "non_matching"
-    },
-
-    "vertexAttributeFilters": [],
-
-    "edgeAttributeFilters": []
-  },
-  
-  "defaultGroupArchetypes": [],
-  
-  "archetypeIcons": [
-	{
-		name: "SpecifiedIcon",
-		value: "<rect class=\"testingArchetypeIcon\" width=\"12\" height=\"15\" x=\"0\" y =\"0\" stroke=\"none\" fill=\"green\"/>"
-	}
-  ]
-}
diff --git a/sources/imiger-core/src/test/resources/config/automaticGroupingConfigTest.json b/sources/imiger-core/src/test/resources/config/automaticGroupingConfigTest.json
deleted file mode 100644
index 3c2cbd2..0000000
--- a/sources/imiger-core/src/test/resources/config/automaticGroupingConfigTest.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
-  "defaultFilter": {
-    "vertexArchetypeFilter": {
-      "archetypes": [ ],
-      "matchType": "non_matching"
-    },
-
-    "edgeArchetypeFilter": {
-      "archetypes": [
-        
-      ],
-      "matchType": "non_matching"
-    },
-
-    "vertexAttributeFilters": [],
-
-    "edgeAttributeFilters": []
-  },
-  
-  "defaultGroupArchetypes": ["FirstGroupArchetype"],
-  
-  "archetypeIcons": []
-}
diff --git a/sources/imiger-core/src/test/resources/config/emptyConfig.json b/sources/imiger-core/src/test/resources/config/emptyConfig.json
deleted file mode 100644
index 36cadf9..0000000
--- a/sources/imiger-core/src/test/resources/config/emptyConfig.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
-  "defaultFilter": {
-    "vertexArchetypeFilter": {
-      "archetypes": [ ],
-      "matchType": "non_matching"
-    },
-
-    "edgeArchetypeFilter": {
-      "archetypes": [
-        
-      ],
-      "matchType": "non_matching"
-    },
-
-    "vertexAttributeFilters": [],
-
-    "edgeAttributeFilters": []
-  },
-  
-  "defaultGroupArchetypes": [],
-  
-  "archetypeIcons": []
-}
diff --git a/sources/imiger-core/src/test/resources/data/RawArchetypeIconTest.json b/sources/imiger-core/src/test/resources/data/RawArchetypeIconTest.json
deleted file mode 100644
index d3c7aa6..0000000
--- a/sources/imiger-core/src/test/resources/data/RawArchetypeIconTest.json
+++ /dev/null
@@ -1 +0,0 @@
-{"attributeTypes":[],"edgeArchetypes":[{"name":"edge","text":""}],"vertexArchetypes":[{"icon":"<rect class=\"testingArchetypeIcon\" width=\"12\" height=\"15\" x=\"0\" y =\"0\" stroke=\"none\" fill=\"green\"/>","name":"SpecifiedIcon","text":""},{"icon":"","name":"UnspecifiedIcon","text":""},{"icon":"<text y=\"8\" fill=\"red\">☺</text>","name":"Smiley","text":""}],"vertices":[{"archetype":0,"attributes":[],"id":1,"text":"","name":"Vertex with specified icon","position":{"x":640.5,"y":408.25}},{"archetype":1,"attributes":[],"id":2,"text":"","name":"Vertex with unspecified icon","position":{"x":826.25,"y":536.75}},{"archetype":2,"attributes":[],"id":3,"text":"","name":"Vertex with smiley as archetype icon","position":{"x":438,"y":537.75}}],"edges":[{"subedgeInfo":[{"archetype":0,"attributes":[],"id":1}],"from":1,"to":3,"text":"","id":1},{"subedgeInfo":[{"archetype":0,"attributes":[],"id":0}],"from":1,"to":2,"text":"","id":2}],"possibleEnumValues":{},"groups":[],"sideBar":[],"highlightedVertex":"","highlightedEdge":""}
diff --git a/sources/imiger-core/src/test/resources/data/RawAssociatedArchetypeTest.json b/sources/imiger-core/src/test/resources/data/RawAssociatedArchetypeTest.json
deleted file mode 100644
index d011f97..0000000
--- a/sources/imiger-core/src/test/resources/data/RawAssociatedArchetypeTest.json
+++ /dev/null
@@ -1 +0,0 @@
-{"attributeTypes":[],"edgeArchetypes":[{"name":"edge","text":""}],"vertexArchetypes":[{"icon":"","name":"1","text":""},{"icon":"","name":"2","text":""},{"icon":"","name":"3","text":""},{"icon":"","name":"4","text":""}],"vertices":[{"archetype":0,"attributes":[],"id":1,"text":"","name":"V1","position":{"x":989.5,"y":684}},{"archetype":1,"attributes":[],"id":2,"text":"","name":"V2","position":{"x":985.75,"y":871.5}},{"archetype":1,"attributes":[],"id":3,"text":"","name":"V3","position":{"x":988,"y":540}},{"archetype":3,"attributes":[],"id":4,"text":"","name":"V4","position":{"x":694,"y":678.25}},{"archetype":2,"attributes":[],"id":5,"text":"","name":"V5","position":{"x":702.75,"y":755}}],"edges":[{"subedgeInfo":[{"archetype":0,"attributes":[],"id":0}],"from":1,"to":2,"text":"","id":1},{"subedgeInfo":[{"archetype":0,"attributes":[],"id":4}],"from":4,"to":5,"text":"","id":2},{"subedgeInfo":[{"archetype":0,"attributes":[],"id":2}],"from":1,"to":4,"text":"","id":3},{"subedgeInfo":[{"archetype":0,"attributes":[],"id":1}],"from":3,"to":1,"text":"","id":4},{"subedgeInfo":[{"archetype":0,"attributes":[],"id":3}],"from":4,"to":1,"text":"","id":5}],"possibleEnumValues":{},"groups":[],"sideBar":[],"highlightedVertex":"","highlightedEdge":""}
\ No newline at end of file
diff --git a/sources/imiger-core/src/test/resources/data/RawDetailTest.json b/sources/imiger-core/src/test/resources/data/RawDetailTest.json
deleted file mode 100644
index cdad714..0000000
--- a/sources/imiger-core/src/test/resources/data/RawDetailTest.json
+++ /dev/null
@@ -1 +0,0 @@
-{"attributeTypes":[{"dataType":"STRING","name":"D","text":"0"},{"dataType":"STRING","name":"C","text":"1"},{"dataType":"STRING","name":"B","text":"2"},{"dataType":"STRING","name":"A","text":"3"}],"edgeArchetypes":[{"name":"edgeArchetype1","text":""},{"name":"edgeArchetype2","text":""}],"vertexArchetypes":[{"icon":"","name":"1","text":""},{"icon":"","name":"2","text":""},{"icon":"","name":"3","text":""}],"vertices":[{"archetype":2,"attributes":[["D","E"],["B","W"],["A","Q"]],"id":1,"text":"","name":"V1","position":{"x":753.25,"y":693.75}},{"archetype":1,"attributes":[["D","E"],["C","Q"],["B","W"]],"id":2,"text":"","name":"V2","position":{"x":534.25,"y":897.5}},{"archetype":0,"attributes":[["D","Q"],["C","W"],["A","E"]],"id":3,"text":"","name":"V3","position":{"x":961.25,"y":899.75}}],"edges":[{"subedgeInfo":[{"archetype":0,"attributes":[["D","E"],["C","W"]],"id":3}],"from":1,"to":3,"text":"","id":1},{"subedgeInfo":[{"archetype":0,"attributes":[["D","E"],["B","W"],["A","Q"]],"id":1},{"archetype":1,"attributes":[["D","D"],["B","S"],["A","A"]],"id":2}],"from":1,"to":2,"text":"","id":2},{"subedgeInfo":[{"archetype":1,"attributes":[["C","T"],["B","R"]],"id":4}],"from":3,"to":1,"text":"","id":3}],"possibleEnumValues":{},"groups":[],"sideBar":[],"highlightedVertex":"","highlightedEdge":""}
\ No newline at end of file
diff --git a/sources/imiger-core/src/test/resources/data/automaticGroupingTest.json b/sources/imiger-core/src/test/resources/data/automaticGroupingTest.json
deleted file mode 100644
index fca1da8..0000000
--- a/sources/imiger-core/src/test/resources/data/automaticGroupingTest.json
+++ /dev/null
@@ -1,108 +0,0 @@
-{
- "attributeTypes": [
-
- ],
- "vertexArchetypes": [
-  {
-   "name": "FirstGroupArchetype",
-   "text": ""
-  },
-  {
-   "name": "NonGroupArchetype",
-   "text": ""
-  }
- ],
- "edgeArchetypes": [
-	{
-		"name": "edge",
-		"text": ""
-	}
- ],
- "vertices": [
-  {
-   "archetype": 0,
-   "attributes": {},
-   "id": 1,
-   "text": "",
-   "title": "First vertex from first group"
-  },
-  {
-   "archetype": 1,
-   "attributes": {},
-   "id": 2,
-   "text": "",
-   "title": "Non group vertex"
-  },
-  {
-   "archetype": 0,
-   "attributes": {},
-   "id": 3,
-   "text": "",
-   "title": "Second vertex from first group"
-  },  
-   {
-   "archetype": 1,
-   "attributes": {},
-   "id": 4,
-   "text": "",
-   "title": "Non group vertex"
-  },
-  {
-   "archetype": 1,
-   "attributes": {},
-   "id": 5,
-   "text": "",
-   "title": "Non group vertex"
-  }
- ],
- "edges": [
-	{
-	   "archetype": 0,
-	   "from": 1,
-	   "attributes": {},
-	   "id": 0,
-	   "to": 2,
-	   "text": ""
-	},
-	{
-	   "archetype": 0,
-	   "from": 1,
-	   "attributes": {},
-	   "id": 1,
-	   "to": 3,
-	   "text": ""
-	},
-  {
-	   "archetype": 0,
-	   "from": 2,
-	   "attributes": {},
-	   "id": 1,
-	   "to": 5,
-	   "text": ""
-	},
-  {
-	   "archetype": 0,
-	   "from": 2,
-	   "attributes": {},
-	   "id": 1,
-	   "to": 4,
-	   "text": ""
-	},
-  {
-	   "archetype": 0,
-	   "from": 5,
-	   "attributes": {},
-	   "id": 1,
-	   "to": 4,
-	   "text": ""
-	},
-  {
-	   "archetype": 0,
-	   "from": 4,
-	   "attributes": {},
-	   "id": 1,
-	   "to": 2,
-	   "text": ""
-	},
- ]
-}
\ No newline at end of file
