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:
+1
-1
@@ -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;
|
||||
|
||||
+1
-1
@@ -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();
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
+1
-1
@@ -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
|
||||
+1
-1
@@ -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);
|
||||
+3
-3
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user