From 2a45a14e62fcdf518d55f87e8d22a72676ff77e7 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <p.gawron@atcomp.pl>
Date: Thu, 18 Jan 2024 13:57:30 +0100
Subject: [PATCH] fix test run

---
 commons/pom.xml                                           | 8 ++++++++
 .../main/java/lcsb/mapviewer/common/tests/TestUtils.java  | 2 ++
 2 files changed, 10 insertions(+)

diff --git a/commons/pom.xml b/commons/pom.xml
index e23809bb7d..8d7344720e 100644
--- a/commons/pom.xml
+++ b/commons/pom.xml
@@ -65,6 +65,14 @@
 			<artifactId>junit</artifactId>
 			<version>${junit.version}</version>
 		</dependency>
+
+		<!-- https://mvnrepository.com/artifact/org.springframework/spring-test -->
+		<dependency>
+			<groupId>org.springframework</groupId>
+			<artifactId>spring-test</artifactId>
+			<version>${springframework.version}</version>
+		</dependency>
+
 	</dependencies>
 
 </project>
\ No newline at end of file
diff --git a/commons/src/main/java/lcsb/mapviewer/common/tests/TestUtils.java b/commons/src/main/java/lcsb/mapviewer/common/tests/TestUtils.java
index 9203b3d63f..8197029461 100644
--- a/commons/src/main/java/lcsb/mapviewer/common/tests/TestUtils.java
+++ b/commons/src/main/java/lcsb/mapviewer/common/tests/TestUtils.java
@@ -38,6 +38,7 @@ import org.apache.logging.log4j.Logger;
 import org.apache.logging.log4j.core.LogEvent;
 import org.junit.After;
 import org.junit.Before;
+import org.springframework.test.context.TestPropertySource;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 import org.w3c.dom.Node;
@@ -50,6 +51,7 @@ import lcsb.mapviewer.common.MinervaLoggerAppender;
 import lcsb.mapviewer.common.exception.InvalidStateException;
 import lcsb.mapviewer.common.exception.InvalidXmlSchemaException;
 
+@TestPropertySource(properties = "spring.flyway.enabled=false")
 public class TestUtils {
 
   protected static final String BUILT_IN_TEST_ADMIN_PASSWORD = "admin";
-- 
GitLab