HOTFIX: removed dependency to simplehistory

This commit is contained in:
Mustapha Zorgati 2019-10-07 16:52:09 +02:00
parent a57616ff32
commit a6bf8c2a05
2 changed files with 0 additions and 48 deletions

View File

@ -53,11 +53,6 @@
<artifactId>taskana-rest-spring-base</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>pro.taskana.simplehistory</groupId>
<artifactId>taskana-simplehistory-provider</artifactId>
<version>${project.version}</version>
</dependency>
<!-- Tests -->
<dependency>

View File

@ -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);
}
}