From 54117d7d27f6909bef9a4f261b237d6dedc0afe0 Mon Sep 17 00:00:00 2001 From: Marcus Da Coregio Date: Fri, 14 Apr 2023 10:49:43 -0300 Subject: [PATCH] Fix test suffix to align with checkstyle --- ...rityAddFilterTest.java => HttpSecurityAddFilterTests.java} | 2 +- ...Test.java => ReactiveOAuth2ClientImportSelectorTests.java} | 2 +- ...oviderTest.java => PostInvocationAdviceProviderTests.java} | 2 +- ...nTest.java => Saml2AuthenticationExceptionMixinTests.java} | 2 +- ...dlersTest.java => SecurityMockMvcResultHandlersTests.java} | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) rename config/src/test/java/org/springframework/security/config/annotation/web/builders/{HttpSecurityAddFilterTest.java => HttpSecurityAddFilterTests.java} (99%) rename config/src/test/java/org/springframework/security/config/annotation/web/reactive/{ReactiveOAuth2ClientImportSelectorTest.java => ReactiveOAuth2ClientImportSelectorTests.java} (99%) rename core/src/test/java/org/springframework/security/access/prepost/{PostInvocationAdviceProviderTest.java => PostInvocationAdviceProviderTests.java} (97%) rename saml2/saml2-service-provider/src/test/java/org/springframework/security/saml2/jackson2/{Saml2AuthenticationExceptionMixinTest.java => Saml2AuthenticationExceptionMixinTests.java} (97%) rename test/src/test/java/org/springframework/security/test/web/servlet/response/{SecurityMockMvcResultHandlersTest.java => SecurityMockMvcResultHandlersTests.java} (98%) diff --git a/config/src/test/java/org/springframework/security/config/annotation/web/builders/HttpSecurityAddFilterTest.java b/config/src/test/java/org/springframework/security/config/annotation/web/builders/HttpSecurityAddFilterTests.java similarity index 99% rename from config/src/test/java/org/springframework/security/config/annotation/web/builders/HttpSecurityAddFilterTest.java rename to config/src/test/java/org/springframework/security/config/annotation/web/builders/HttpSecurityAddFilterTests.java index cbe51d9aa7..54c4a7e048 100644 --- a/config/src/test/java/org/springframework/security/config/annotation/web/builders/HttpSecurityAddFilterTest.java +++ b/config/src/test/java/org/springframework/security/config/annotation/web/builders/HttpSecurityAddFilterTests.java @@ -49,7 +49,7 @@ import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; @ExtendWith(SpringTestContextExtension.class) -public class HttpSecurityAddFilterTest { +public class HttpSecurityAddFilterTests { public final SpringTestContext spring = new SpringTestContext(this); diff --git a/config/src/test/java/org/springframework/security/config/annotation/web/reactive/ReactiveOAuth2ClientImportSelectorTest.java b/config/src/test/java/org/springframework/security/config/annotation/web/reactive/ReactiveOAuth2ClientImportSelectorTests.java similarity index 99% rename from config/src/test/java/org/springframework/security/config/annotation/web/reactive/ReactiveOAuth2ClientImportSelectorTest.java rename to config/src/test/java/org/springframework/security/config/annotation/web/reactive/ReactiveOAuth2ClientImportSelectorTests.java index 1ba668d331..d7e41bdc50 100644 --- a/config/src/test/java/org/springframework/security/config/annotation/web/reactive/ReactiveOAuth2ClientImportSelectorTest.java +++ b/config/src/test/java/org/springframework/security/config/annotation/web/reactive/ReactiveOAuth2ClientImportSelectorTests.java @@ -52,7 +52,7 @@ import static org.mockito.Mockito.verifyNoInteractions; * @author Alavudin Kuttikkattil */ @ExtendWith(SpringTestContextExtension.class) -public class ReactiveOAuth2ClientImportSelectorTest { +public class ReactiveOAuth2ClientImportSelectorTests { public final SpringTestContext spring = new SpringTestContext(this); diff --git a/core/src/test/java/org/springframework/security/access/prepost/PostInvocationAdviceProviderTest.java b/core/src/test/java/org/springframework/security/access/prepost/PostInvocationAdviceProviderTests.java similarity index 97% rename from core/src/test/java/org/springframework/security/access/prepost/PostInvocationAdviceProviderTest.java rename to core/src/test/java/org/springframework/security/access/prepost/PostInvocationAdviceProviderTests.java index 2502890e08..90d25285fb 100644 --- a/core/src/test/java/org/springframework/security/access/prepost/PostInvocationAdviceProviderTest.java +++ b/core/src/test/java/org/springframework/security/access/prepost/PostInvocationAdviceProviderTests.java @@ -29,7 +29,7 @@ import org.springframework.security.access.intercept.aspectj.MethodInvocationAda import static org.assertj.core.api.Assertions.assertThat; @ExtendWith(MockitoExtension.class) -public class PostInvocationAdviceProviderTest { +public class PostInvocationAdviceProviderTests { @Mock private PostInvocationAuthorizationAdvice authorizationAdvice; diff --git a/saml2/saml2-service-provider/src/test/java/org/springframework/security/saml2/jackson2/Saml2AuthenticationExceptionMixinTest.java b/saml2/saml2-service-provider/src/test/java/org/springframework/security/saml2/jackson2/Saml2AuthenticationExceptionMixinTests.java similarity index 97% rename from saml2/saml2-service-provider/src/test/java/org/springframework/security/saml2/jackson2/Saml2AuthenticationExceptionMixinTest.java rename to saml2/saml2-service-provider/src/test/java/org/springframework/security/saml2/jackson2/Saml2AuthenticationExceptionMixinTests.java index b6c2b22711..8f9533a966 100644 --- a/saml2/saml2-service-provider/src/test/java/org/springframework/security/saml2/jackson2/Saml2AuthenticationExceptionMixinTest.java +++ b/saml2/saml2-service-provider/src/test/java/org/springframework/security/saml2/jackson2/Saml2AuthenticationExceptionMixinTests.java @@ -27,7 +27,7 @@ import org.springframework.security.saml2.provider.service.authentication.Saml2A import static org.assertj.core.api.Assertions.assertThat; -class Saml2AuthenticationExceptionMixinTest { +class Saml2AuthenticationExceptionMixinTests { private ObjectMapper mapper; diff --git a/test/src/test/java/org/springframework/security/test/web/servlet/response/SecurityMockMvcResultHandlersTest.java b/test/src/test/java/org/springframework/security/test/web/servlet/response/SecurityMockMvcResultHandlersTests.java similarity index 98% rename from test/src/test/java/org/springframework/security/test/web/servlet/response/SecurityMockMvcResultHandlersTest.java rename to test/src/test/java/org/springframework/security/test/web/servlet/response/SecurityMockMvcResultHandlersTests.java index 3f089b6032..cb1866da3a 100644 --- a/test/src/test/java/org/springframework/security/test/web/servlet/response/SecurityMockMvcResultHandlersTest.java +++ b/test/src/test/java/org/springframework/security/test/web/servlet/response/SecurityMockMvcResultHandlersTests.java @@ -42,9 +42,9 @@ import static org.springframework.security.test.web.servlet.setup.SecurityMockMv import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; @ExtendWith(SpringExtension.class) -@ContextConfiguration(classes = SecurityMockMvcResultHandlersTest.Config.class) +@ContextConfiguration(classes = SecurityMockMvcResultHandlersTests.Config.class) @WebAppConfiguration -public class SecurityMockMvcResultHandlersTest { +public class SecurityMockMvcResultHandlersTests { @Autowired private WebApplicationContext context;