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

View file

@ -5,10 +5,7 @@ import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IMap;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.*;
import org.junit.jupiter.api.extension.ExtendWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -72,6 +69,11 @@ public class AllMapStoreTest {
Hazelcast.shutdownAll();
}
@AfterAll
static void shutdownAll() {
Hazelcast.shutdownAll();
}
@PostConstruct
public void initTestObjects() {
try {

View file

@ -1,6 +1,7 @@
package ru.spcex.clearing.imdg.services;
import com.hazelcast.core.Hazelcast;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@ -42,6 +43,11 @@ class PlannerAllTodayMakerTest {
Hazelcast.shutdownAll();
}
@AfterAll
static void shutdownAll() {
Hazelcast.shutdownAll();
}
@Test
void needAddFromPlannerTemplate() {
PlannerAllTodayMaker plannerAllTodayMaker = new PlannerAllTodayMaker(testConfig.getHazelcastInstance());