From f690d83883ef2110de668159cd1f360d0af2314a Mon Sep 17 00:00:00 2001 From: Pascal Grimaud Date: Thu, 23 Dec 2021 11:20:42 +0100 Subject: [PATCH] Templates: prettier format --- .../resources/generator/server/sonar/sonar.yml.mustache | 4 ++-- .../mvc/security/jwt/test/TokenProviderTest.java.mustache | 6 +----- .../mvc/web/test/ExceptionTranslatorIT.java.mustache | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/main/resources/generator/server/sonar/sonar.yml.mustache b/src/main/resources/generator/server/sonar/sonar.yml.mustache index 7a09d0971f4..ddf642ea5c5 100644 --- a/src/main/resources/generator/server/sonar/sonar.yml.mustache +++ b/src/main/resources/generator/server/sonar/sonar.yml.mustache @@ -6,8 +6,8 @@ services: # Authentication is turned off for out of the box experience while trying out SonarQube # For real use cases delete sonar.forceAuthentication variable or set sonar.forceAuthentication=true environment: - - sonar.forceAuthentication=false + - sonar.forceAuthentication=false # If you want to expose these ports outside your dev PC, # remove the "127.0.0.1:" prefix ports: - - 127.0.0.1:9001:9000 + - 127.0.0.1:9001:9000 diff --git a/src/main/resources/generator/server/springboot/mvc/security/jwt/test/TokenProviderTest.java.mustache b/src/main/resources/generator/server/springboot/mvc/security/jwt/test/TokenProviderTest.java.mustache index ee4ae059d5a..cd2ecfb1c21 100644 --- a/src/main/resources/generator/server/springboot/mvc/security/jwt/test/TokenProviderTest.java.mustache +++ b/src/main/resources/generator/server/springboot/mvc/security/jwt/test/TokenProviderTest.java.mustache @@ -143,11 +143,7 @@ class TokenProviderTest { } private String createTokenWithoutAuthorities() { - UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken( - "test-user", - "test-password", - List.of() - ); + UsernamePasswordAuthenticationToken authentication = new UsernamePasswordAuthenticationToken("test-user", "test-password", List.of()); return tokenProvider.createToken(authentication, true); } } diff --git a/src/main/resources/generator/server/springboot/mvc/web/test/ExceptionTranslatorIT.java.mustache b/src/main/resources/generator/server/springboot/mvc/web/test/ExceptionTranslatorIT.java.mustache index ef8dbbbb694..ea328dae070 100644 --- a/src/main/resources/generator/server/springboot/mvc/web/test/ExceptionTranslatorIT.java.mustache +++ b/src/main/resources/generator/server/springboot/mvc/web/test/ExceptionTranslatorIT.java.mustache @@ -12,8 +12,8 @@ import org.junit.jupiter.api.Test; import org.mockito.Mockito; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; -import org.springframework.http.HttpStatus; import org.springframework.context.ApplicationContext; +import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.test.util.ReflectionTestUtils;