From 8c8a71287a9669f99d01f519b0e9809d4696c3fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Henninger?= Date: Thu, 12 Dec 2024 15:17:49 +0100 Subject: [PATCH] Remove mocks --- .../configuration/SpringDocConfigurationTest.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/test/java/fr/insee/genesis/configuration/SpringDocConfigurationTest.java b/src/test/java/fr/insee/genesis/configuration/SpringDocConfigurationTest.java index ad04bf5..74fbce2 100644 --- a/src/test/java/fr/insee/genesis/configuration/SpringDocConfigurationTest.java +++ b/src/test/java/fr/insee/genesis/configuration/SpringDocConfigurationTest.java @@ -3,9 +3,6 @@ import io.swagger.v3.oas.models.OpenAPI; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; -import org.mockito.InjectMocks; -import org.mockito.Mock; -import org.mockito.junit.jupiter.MockitoExtension; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.context.ApplicationContext; @@ -13,20 +10,13 @@ import static org.junit.jupiter.api.Assertions.*; -@ExtendWith({SpringExtension.class, MockitoExtension.class}) +@ExtendWith({SpringExtension.class}) @SpringBootTest(classes = {SpringDocConfiguration.class, Config.class}) class SpringDocConfigurationTest { @Autowired private ApplicationContext applicationContext; - @Mock - private Config config; // Config mock to inject custom values - - @InjectMocks - private SpringDocConfiguration springDocConfiguration; - - @Test void testNoAuthOpenAPIBeanCreation() { System.setProperty("fr.insee.genesis.authentication", "NONE");