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:
Phillip Webb
2020-08-05 17:24:50 -07:00
committed by Rob Winch
parent 94cf4d1de7
commit 27ac046d8a
21 changed files with 25 additions and 25 deletions

View File

@@ -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;

View File

@@ -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();

View File

@@ -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;

View File

@@ -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

View File

@@ -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

View File

@@ -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);