ContextBasedTest with @DirtiesContext

This commit is contained in:
Michael Hoennig 2024-09-15 20:03:10 +02:00
parent faca4196e4
commit 5c0d8e0f3e

View File

@ -6,11 +6,13 @@ import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.TestInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Import;
import org.springframework.test.annotation.DirtiesContext;
import jakarta.persistence.EntityManager;
import jakarta.persistence.PersistenceContext;
import java.sql.Timestamp;
@DirtiesContext
@Import(RbacGrantsDiagramService.class)
public abstract class ContextBasedTest {