From a6bf8c2a05645a1a5ea1ec4c7808c9634441643b Mon Sep 17 00:00:00 2001
From: Mustapha Zorgati <15628173+mustaphazorgati@users.noreply.github.com>
Date: Mon, 7 Oct 2019 16:52:09 +0200
Subject: [PATCH] HOTFIX: removed dependency to simplehistory
---
rest/taskana-rest-spring-test/pom.xml | 5 ---
.../pro/taskana/HistoryPluginLoaderTest.java | 43 -------------------
2 files changed, 48 deletions(-)
delete mode 100644 rest/taskana-rest-spring-test/src/test/java/pro/taskana/HistoryPluginLoaderTest.java
diff --git a/rest/taskana-rest-spring-test/pom.xml b/rest/taskana-rest-spring-test/pom.xml
index 0cd586eee..2cf5933d5 100644
--- a/rest/taskana-rest-spring-test/pom.xml
+++ b/rest/taskana-rest-spring-test/pom.xml
@@ -53,11 +53,6 @@
taskana-rest-spring-base
${project.version}
-
- pro.taskana.simplehistory
- taskana-simplehistory-provider
- ${project.version}
-
diff --git a/rest/taskana-rest-spring-test/src/test/java/pro/taskana/HistoryPluginLoaderTest.java b/rest/taskana-rest-spring-test/src/test/java/pro/taskana/HistoryPluginLoaderTest.java
deleted file mode 100644
index 555fa0d01..000000000
--- a/rest/taskana-rest-spring-test/src/test/java/pro/taskana/HistoryPluginLoaderTest.java
+++ /dev/null
@@ -1,43 +0,0 @@
-package pro.taskana;
-
-import static org.junit.Assert.assertEquals;
-
-import javax.sql.DataSource;
-
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.jdbc.core.JdbcTemplate;
-import org.springframework.test.context.ActiveProfiles;
-import org.springframework.test.context.junit4.SpringRunner;
-
-import pro.taskana.history.HistoryEventProducer;
-import pro.taskana.impl.TaskanaEngineImpl;
-import pro.taskana.rest.RestConfiguration;
-
-/**
- * test loading of history plugin.
- *
- */
-@RunWith(SpringRunner.class)
-@ActiveProfiles(profiles = "history.plugin")
-@SpringBootTest(classes = RestConfiguration.class)
-public class HistoryPluginLoaderTest {
-
- @Autowired
- private DataSource dataSource;
-
- @Autowired
- private JdbcTemplate jdbcTemplate;
-
- @Autowired
- private TaskanaEngine taskanaEngine;
-
- @Test
- public void testHistoryEventProducerIsEnabled() {
- HistoryEventProducer historyEventProducer = ((TaskanaEngineImpl) taskanaEngine).getHistoryEventProducer();
- assertEquals(historyEventProducer.isEnabled(), true);
- }
-
-}