Rename *Test.java -> *Tests.java
Rename a few test classes that accidentally ended in `Test` instead of `Tests`. Issue gh-8945
This commit is contained in:
parent
94cf4d1de7
commit
27ac046d8a
|
@ -37,7 +37,7 @@ import static org.mockito.BDDMockito.given;
|
|||
* @author paulwheeler
|
||||
*/
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
public class AclClassIdUtilsTest {
|
||||
public class AclClassIdUtilsTests {
|
||||
|
||||
private static final Long DEFAULT_IDENTIFIER = 999L;
|
||||
private static final BigInteger BIGINT_IDENTIFIER = new BigInteger("999");
|
|
@ -24,7 +24,7 @@ import org.springframework.security.core.authority.mapping.SimpleAuthorityMapper
|
|||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
public class LdapAuthenticationProviderConfigurerTest {
|
||||
public class LdapAuthenticationProviderConfigurerTests {
|
||||
|
||||
private LdapAuthenticationProviderConfigurer<AuthenticationManagerBuilder> configurer;
|
||||
|
|
@ -30,7 +30,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||
*
|
||||
* @author Eleftheria Stein
|
||||
*/
|
||||
public class ServerHttpSecurityConfigurationTest {
|
||||
public class ServerHttpSecurityConfigurationTests {
|
||||
@Rule
|
||||
public final SpringTestRule spring = new SpringTestRule();
|
||||
|
|
@ -35,7 +35,7 @@ import static org.assertj.core.api.AssertionsForClassTypes.assertThatThrownBy;
|
|||
* @since 5.0
|
||||
*/
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
public class UserDetailsResourceFactoryBeanTest {
|
||||
public class UserDetailsResourceFactoryBeanTests {
|
||||
@Mock
|
||||
ResourceLoader resourceLoader;
|
||||
|
|
@ -95,16 +95,16 @@ public class FormLoginConfigTests {
|
|||
.param("username", "user")
|
||||
.param("password", "password")
|
||||
.with(csrf()))
|
||||
.andExpect(redirectedUrl(WebConfigUtilsTest.URL + "/default"));
|
||||
.andExpect(redirectedUrl(WebConfigUtilsTests.URL + "/default"));
|
||||
|
||||
this.mvc.perform(post("/login")
|
||||
.param("username", "user")
|
||||
.param("password", "wrong")
|
||||
.with(csrf()))
|
||||
.andExpect(redirectedUrl(WebConfigUtilsTest.URL + "/failure"));
|
||||
.andExpect(redirectedUrl(WebConfigUtilsTests.URL + "/failure"));
|
||||
|
||||
this.mvc.perform(get("/"))
|
||||
.andExpect(redirectedUrl("http://localhost" + WebConfigUtilsTest.URL + "/login"));
|
||||
.andExpect(redirectedUrl("http://localhost" + WebConfigUtilsTests.URL + "/login"));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
|
@ -26,7 +26,7 @@ import org.springframework.beans.factory.xml.ParserContext;
|
|||
|
||||
@RunWith(PowerMockRunner.class)
|
||||
@PrepareOnlyThisForTest(ParserContext.class)
|
||||
public class WebConfigUtilsTest {
|
||||
public class WebConfigUtilsTests {
|
||||
public final static String URL = "/url";
|
||||
|
||||
@Mock
|
|
@ -20,7 +20,7 @@ import org.springframework.beans.factory.support.BeanDefinitionRegistry;
|
|||
import org.springframework.beans.factory.support.GenericBeanDefinition;
|
||||
import org.springframework.beans.factory.support.SimpleBeanDefinitionRegistry;
|
||||
|
||||
public class MessageSecurityPostProcessorTest {
|
||||
public class MessageSecurityPostProcessorTests {
|
||||
|
||||
private WebSocketMessageBrokerSecurityBeanDefinitionParser.MessageSecurityPostProcessor postProcessor =
|
||||
new WebSocketMessageBrokerSecurityBeanDefinitionParser.MessageSecurityPostProcessor("id", false);
|
|
@ -27,9 +27,9 @@
|
|||
<http auto-config="true" use-expressions="false">
|
||||
<intercept-url pattern="/**" access="ROLE_USER"/>
|
||||
<form-login
|
||||
default-target-url="#{T(org.springframework.security.config.http.WebConfigUtilsTest).URL}/default"
|
||||
authentication-failure-url="#{T(org.springframework.security.config.http.WebConfigUtilsTest).URL}/failure"
|
||||
login-page="#{T(org.springframework.security.config.http.WebConfigUtilsTest).URL}/login"/>
|
||||
default-target-url="#{T(org.springframework.security.config.http.WebConfigUtilsTests).URL}/default"
|
||||
authentication-failure-url="#{T(org.springframework.security.config.http.WebConfigUtilsTests).URL}/failure"
|
||||
login-page="#{T(org.springframework.security.config.http.WebConfigUtilsTests).URL}/login"/>
|
||||
</http>
|
||||
|
||||
<b:import resource="userservice.xml"/>
|
||||
|
|
|
@ -32,7 +32,7 @@ import org.springframework.core.convert.converter.Converter;
|
|||
/**
|
||||
* Tests for {@link RsaKeyConverters}
|
||||
*/
|
||||
public class RsaKeyConvertersTest {
|
||||
public class RsaKeyConvertersTests {
|
||||
private static final String PKCS8_PRIVATE_KEY = "-----BEGIN PRIVATE KEY-----\n" +
|
||||
"MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCMk7CKSTfu3QoV\n" +
|
||||
"HoPVXxwZO+qweztd36cVWYqGOZinrOR2crWFu50AgR2CsdIH0+cqo7F4Vx7/3O8i\n" +
|
|
@ -27,7 +27,7 @@ import org.springframework.security.crypto.encrypt.AesBytesEncryptor.CipherAlgor
|
|||
import org.springframework.security.crypto.keygen.BytesKeyGenerator;
|
||||
import org.springframework.security.crypto.keygen.KeyGenerators;
|
||||
|
||||
public class BouncyCastleAesBytesEncryptorEquivalencyTest {
|
||||
public class BouncyCastleAesBytesEncryptorEquivalencyTests {
|
||||
|
||||
private byte[] testData;
|
||||
private String password;
|
|
@ -25,7 +25,7 @@ import org.junit.Test;
|
|||
import org.springframework.security.crypto.codec.Hex;
|
||||
import org.springframework.security.crypto.keygen.KeyGenerators;
|
||||
|
||||
public class BouncyCastleAesBytesEncryptorTest {
|
||||
public class BouncyCastleAesBytesEncryptorTests {
|
||||
|
||||
private byte[] testData;
|
||||
private String password;
|
|
@ -29,7 +29,7 @@ import org.mockito.junit.MockitoJUnitRunner;
|
|||
import org.springframework.messaging.Message;
|
||||
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
public class AndMessageMatcherTest {
|
||||
public class AndMessageMatcherTests {
|
||||
@Mock
|
||||
private MessageMatcher<Object> delegate;
|
||||
|
|
@ -29,7 +29,7 @@ import org.mockito.junit.MockitoJUnitRunner;
|
|||
import org.springframework.messaging.Message;
|
||||
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
public class OrMessageMatcherTest {
|
||||
public class OrMessageMatcherTests {
|
||||
@Mock
|
||||
private MessageMatcher<Object> delegate;
|
||||
|
|
@ -42,7 +42,7 @@ import static org.assertj.core.api.Assertions.assertThatThrownBy;
|
|||
* @author Rafiullah Hamedy
|
||||
* @since 5.1
|
||||
*/
|
||||
public class ClientRegistrationsTest {
|
||||
public class ClientRegistrationsTests {
|
||||
|
||||
/**
|
||||
* Contains all optional parameters that are found in ClientRegistration
|
|
@ -47,7 +47,7 @@ import static org.mockito.Mockito.when;
|
|||
* @since 5.1
|
||||
*/
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
public class ServerOAuth2AuthorizationCodeAuthenticationTokenConverterTest {
|
||||
public class ServerOAuth2AuthorizationCodeAuthenticationTokenConverterTests {
|
||||
@Mock
|
||||
private ReactiveClientRegistrationRepository clientRegistrationRepository;
|
||||
|
|
@ -32,7 +32,7 @@ import org.springframework.security.oauth2.core.OAuth2RefreshToken;
|
|||
*
|
||||
* @author Nikita Konev
|
||||
*/
|
||||
public class MapOAuth2AccessTokenResponseConverterTest {
|
||||
public class MapOAuth2AccessTokenResponseConverterTests {
|
||||
|
||||
private MapOAuth2AccessTokenResponseConverter messageConverter;
|
||||
|
|
@ -31,7 +31,7 @@ import org.springframework.security.oauth2.core.OAuth2AccessToken;
|
|||
*
|
||||
* @author Nikita Konev
|
||||
*/
|
||||
public class OAuth2AccessTokenResponseMapConverterTest {
|
||||
public class OAuth2AccessTokenResponseMapConverterTests {
|
||||
|
||||
private OAuth2AccessTokenResponseMapConverter messageConverter;
|
||||
|
|
@ -37,7 +37,7 @@ import static org.mockito.Mockito.when;
|
|||
* @author Rob Winch
|
||||
*/
|
||||
@RunWith(MockitoJUnitRunner.class)
|
||||
public class PayloadExchangeMatcherReactiveAuthorizationManagerTest {
|
||||
public class PayloadExchangeMatcherReactiveAuthorizationManagerTests {
|
||||
|
||||
@Mock
|
||||
private ReactiveAuthorizationManager<PayloadExchangeAuthorizationContext> authz;
|
|
@ -39,7 +39,7 @@ import static org.springframework.security.saml2.provider.service.registration.T
|
|||
/**
|
||||
* Tests for {@link Saml2MetadataFilter}
|
||||
*/
|
||||
public class Saml2MetadataFilterTest {
|
||||
public class Saml2MetadataFilterTests {
|
||||
|
||||
RelyingPartyRegistrationRepository repository;
|
||||
Saml2MetadataResolver resolver;
|
|
@ -48,7 +48,7 @@ import org.springframework.test.util.ReflectionTestUtils;
|
|||
*/
|
||||
@RunWith(PowerMockRunner.class)
|
||||
@PrepareOnlyThisForTest(Logger.class)
|
||||
public class DebugFilterTest {
|
||||
public class DebugFilterTests {
|
||||
@Captor
|
||||
private ArgumentCaptor<HttpServletRequest> requestCaptor;
|
||||
@Captor
|
|
@ -39,7 +39,7 @@ import static org.mockito.Mockito.when;
|
|||
* @author Alexey Nesterov
|
||||
* @since 5.2
|
||||
*/
|
||||
public class ReactivePreAuthenticatedAuthenticationManagerTest {
|
||||
public class ReactivePreAuthenticatedAuthenticationManagerTests {
|
||||
|
||||
private ReactiveUserDetailsService mockUserDetailsService
|
||||
= mock(ReactiveUserDetailsService.class);
|
Loading…
Reference in New Issue