Поправил тесты.
This commit is contained in:
psemenkov 2023-04-26 14:03:47 +03:00
parent d45878e1a2
commit 6a1f2f7c20
2 changed files with 4 additions and 0 deletions

View file

@ -1,6 +1,7 @@
package ru.spcex.clearing.imdg;
import com.hazelcast.config.MapStoreConfig;
import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IMap;
import org.apache.commons.lang3.exception.ExceptionUtils;
@ -68,6 +69,7 @@ public class AllMapStoreTest {
Path path = Paths.get("src", "main", "resources");
String currentPath = path.toAbsolutePath().toString();
System.setProperty("spring.config.location", currentPath);
Hazelcast.shutdownAll();
}
@PostConstruct

View file

@ -1,5 +1,6 @@
package ru.spcex.clearing.imdg.services;
import com.hazelcast.core.Hazelcast;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@ -38,6 +39,7 @@ class PlannerAllTodayMakerTest {
Path path = Paths.get("src", "main", "resources");
String currentPath = path.toAbsolutePath().toString();
System.setProperty("spring.config.location", currentPath);
Hazelcast.shutdownAll();
}
@Test