From dd691457dfc9aa225dfe8e082a758305535fcdb2 Mon Sep 17 00:00:00 2001 From: Tristan Chuine Date: Wed, 23 Oct 2024 12:45:22 +0200 Subject: [PATCH] review --- .../java/org/gridsuite/study/server/StudyServiceTest.java | 4 ++-- .../service/client/AbstractWireMockRestClientTest.java | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/test/java/org/gridsuite/study/server/StudyServiceTest.java b/src/test/java/org/gridsuite/study/server/StudyServiceTest.java index 53719e3c5..c0e002864 100644 --- a/src/test/java/org/gridsuite/study/server/StudyServiceTest.java +++ b/src/test/java/org/gridsuite/study/server/StudyServiceTest.java @@ -64,9 +64,9 @@ class StudyServiceTest { private static final Logger LOGGER = LoggerFactory.getLogger(StudyServiceTest.class); - WireMockServer wireMockServer; + private WireMockServer wireMockServer; - WireMockUtils wireMockUtils; + private WireMockUtils wireMockUtils; @Autowired private MockMvc mockMvc; diff --git a/src/test/java/org/gridsuite/study/server/service/client/AbstractWireMockRestClientTest.java b/src/test/java/org/gridsuite/study/server/service/client/AbstractWireMockRestClientTest.java index e4ebb4d2b..10e91d8a0 100644 --- a/src/test/java/org/gridsuite/study/server/service/client/AbstractWireMockRestClientTest.java +++ b/src/test/java/org/gridsuite/study/server/service/client/AbstractWireMockRestClientTest.java @@ -7,8 +7,6 @@ package org.gridsuite.study.server.service.client; import com.github.tomakehurst.wiremock.WireMockServer; -import lombok.AccessLevel; -import lombok.Getter; import org.gridsuite.study.server.StudyApplication; import org.junit.jupiter.api.AfterEach; import org.slf4j.Logger; @@ -26,8 +24,9 @@ @SpringBootTest @ContextHierarchy({@ContextConfiguration(classes = {StudyApplication.class, TestChannelBinderConfiguration.class})}) public abstract class AbstractWireMockRestClientTest { - @Getter(AccessLevel.PROTECTED) - private final Logger logger = LoggerFactory.getLogger(this.getClass()); + protected final Logger getLogger() { + return LoggerFactory.getLogger(this.getClass()); + } protected WireMockServer wireMockServer;