Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

Commit

Permalink
Rename Test* to *Tests
Browse files Browse the repository at this point in the history
(Consistent with other Spring projects)

Fixes gh-153
  • Loading branch information
Dave Syer committed Feb 14, 2014
1 parent e1587bd commit 9149052
Show file tree
Hide file tree
Showing 112 changed files with 117 additions and 1,034 deletions.
10 changes: 10 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,16 @@
<version>1.0</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>${skipTests}</skip>
<includes>
<include>**/*Tests.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</pluginManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
/**
* @author Dave Syer
*/
public class TestAdminEndpoints {
public class AdminEndpointsTests {

@Rule
public ServerRunning serverRunning = ServerRunning.isRunning();
Expand Down Expand Up @@ -128,7 +128,7 @@ public ResourceOwnerReadOnly(Object target) {
setScope(Arrays.asList("read"));
setUsername("marissa");
setPassword("koala");
TestAdminEndpoints test = (TestAdminEndpoints) target;
AdminEndpointsTests test = (AdminEndpointsTests) target;
setAccessTokenUri(test.serverRunning.getUrl("/sparklr2/oauth/token"));
}
}
Expand All @@ -138,7 +138,7 @@ public ClientCredentialsReadOnly(Object target) {
setClientId("my-client-with-registered-redirect");
setId(getClientId());
setScope(Arrays.asList("read"));
TestAdminEndpoints test = (TestAdminEndpoints) target;
AdminEndpointsTests test = (AdminEndpointsTests) target;
setAccessTokenUri(test.serverRunning.getUrl("/sparklr2/oauth/token"));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
* @author Dave Syer
* @author Luke Taylor
*/
public class TestAuthorizationCodeProvider {
public class AuthorizationCodeProviderTests {

@Rule
public ServerRunning serverRunning = ServerRunning.isRunning();
Expand Down Expand Up @@ -455,7 +455,7 @@ public MyLessTrustedClient(Object target) {
setClientId("my-less-trusted-client");
setScope(Arrays.asList("read"));
setId(getClientId());
TestAuthorizationCodeProvider test = (TestAuthorizationCodeProvider) target;
AuthorizationCodeProviderTests test = (AuthorizationCodeProviderTests) target;
setAccessTokenUri(test.serverRunning.getUrl("/sparklr2/oauth/token"));
setUserAuthorizationUri(test.serverRunning.getUrl("/sparklr2/oauth/authorize"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* @author Ryan Heaton
* @author Dave Syer
*/
public class TestClientCredentialsProvider {
public class ClientCredentialsProviderTests {

@Rule
public ServerRunning serverRunning = ServerRunning.isRunning();
Expand Down Expand Up @@ -131,7 +131,7 @@ public ClientCredentials(Object target) {
setClientId("my-client-with-registered-redirect");
setScope(Arrays.asList("read"));
setId(getClientId());
TestClientCredentialsProvider test = (TestClientCredentialsProvider) target;
ClientCredentialsProviderTests test = (ClientCredentialsProviderTests) target;
setAccessTokenUri(test.serverRunning.getUrl("/sparklr2/oauth/token"));
test.resource = this;
}
Expand All @@ -148,7 +148,7 @@ static class NoScopeClientCredentials extends ClientCredentialsResourceDetails {
public NoScopeClientCredentials(Object target) {
setClientId("my-client-with-registered-redirect");
setId(getClientId());
TestClientCredentialsProvider test = (TestClientCredentialsProvider) target;
ClientCredentialsProviderTests test = (ClientCredentialsProviderTests) target;
setAccessTokenUri(test.serverRunning.getUrl("/sparklr2/oauth/token"));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @author Ryan Heaton
* @author Dave Syer
*/
public class TestImplicitProvider {
public class ImplicitProviderTests {

@Rule
public ServerRunning serverRunning = ServerRunning.isRunning();
Expand Down Expand Up @@ -119,7 +119,7 @@ public AutoApproveImplicit(Object target) {
setClientId("my-less-trusted-autoapprove-client");
setId(getClientId());
setPreEstablishedRedirectUri("http://anywhere");
TestImplicitProvider test = (TestImplicitProvider) target;
ImplicitProviderTests test = (ImplicitProviderTests) target;
setAccessTokenUri(test.serverRunning.getUrl("/sparklr2/oauth/authorize"));
setUserAuthorizationUri(test.serverRunning.getUrl("/sparklr2/oauth/authorize"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @author Ryan Heaton
* @author Dave Syer
*/
public class TestRefreshTokenSupport {
public class RefreshTokenSupportTests {

@Rule
public ServerRunning serverRunning = ServerRunning.isRunning();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @author Ryan Heaton
* @author Dave Syer
*/
public class TestResourceOwnerPasswordProvider {
public class ResourceOwnerPasswordProviderTests {

@Rule
public ServerRunning serverRunning = ServerRunning.isRunning();
Expand Down Expand Up @@ -226,7 +226,7 @@ public ResourceOwner(Object target) {
setId(getClientId());
setUsername("marissa");
setPassword("koala");
TestResourceOwnerPasswordProvider test = (TestResourceOwnerPasswordProvider) target;
ResourceOwnerPasswordProviderTests test = (ResourceOwnerPasswordProviderTests) target;
setAccessTokenUri(test.serverRunning.getUrl("/sparklr2/oauth/token"));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* @author Ryan Heaton
* @author Dave Syer
*/
public class TestAuthorizationCodeGrant {
public class AuthorizationCodeGrantTests {

@Rule
public ServerRunning serverRunning = ServerRunning.isRunning();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
* @author Ryan Heaton
* @author Dave Syer
*/
public class TestClientCredentialsGrant {
public class ClientCredentialsGrantTests {

@Rule
public ServerRunning serverRunning = ServerRunning.isRunning();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* @author Dave Syer
*/
public class TestRefreshTokenGrant {
public class RefreshTokenGrantTests {

@Rule
public ServerRunning serverRunning = ServerRunning.isRunning();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* @author Dave Syer
*/
public class TestResourceOwnerPasswordGrant {
public class ResourceOwnerPasswordGrantTests {

@Rule
public ServerRunning serverRunning = ServerRunning.isRunning();
Expand Down
3 changes: 1 addition & 2 deletions spring-security-oauth/.springBeans
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<beansProjectDescription>
<version>1</version>
<pluginVersion><![CDATA[2.8.1.201111220115-RELEASE]]></pluginVersion>
<pluginVersion><![CDATA[3.4.0.201310051539-RELEASE]]></pluginVersion>
<configSuffixes>
<configSuffix><![CDATA[xml]]></configSuffix>
</configSuffixes>
<enableImports><![CDATA[false]]></enableImports>
<configs>
<config>src/test/resources/org/springframework/security/oauth/config/TestFilterChainInitialization-context.xml</config>
</configs>
<configSets>
</configSets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* @author Dave Syer
*/
@RunWith(MockitoJUnitRunner.class)
public class TestGoogleCodeCompatibility {
public class GoogleCodeCompatibilityTests {
@Mock
private HttpServletRequest request;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* @author Ryan Heaton
*/
public class TestOAuthCodec {
public class OAuthCodecTests {

/**
* tests idempotent decode.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
/**
* @author Ryan Heaton
*/
public class TestCoreOAuthSignatureMethodFactory {
public class CoreOAuthSignatureMethodFactoryTests {

/**
* tests getting the signature method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/**
* @author Ryan Heaton
*/
public class TestHMAC_SHA1SignatureMethod {
public class HMAC_SHA1SignatureMethodTests {

/**
* Test sign and verify.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* @author Ryan Heaton
*/
public class TestPlainTextSignatureMethod {
public class PlainTextSignatureMethodTests {

/**
* tests signing and verifying.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
/**
* @author Ryan Heaton
*/
public class TestRSA_SHA1SignatureMethod {
public class RSA_SHA1SignatureMethodTests {

/**
* tests signing and verifying.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

@ContextConfiguration
@RunWith(SpringJUnit4ClassRunner.class)
public class TestAuthorizationServerBeanDefinitionParser {
public class AuthorizationServerBeanDefinitionParserTests {

@Autowired
private UserAuthorizationProcessingFilter filter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@ContextConfiguration
@RunWith(SpringJUnit4ClassRunner.class)
public class TestConsumerServiceBeanDefinitionParser {
public class ConsumerServiceBeanDefinitionParserTests {

@Autowired
private ConsumerDetailsService clientDetailsService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@ContextConfiguration
@RunWith(SpringJUnit4ClassRunner.class)
public class TestFilterChainInitialization {
public class FilterChainInitializationTests {

@Autowired
private ConsumerDetailsService clientDetailsService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* @author Ryan Heaton
*/
public class TestGoogleOAuth {
public class GoogleOAuthTests {

/**
* tests getting a request token.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
*/
@SuppressWarnings("restriction")
@RunWith(MockitoJUnitRunner.class)
public class TestCoreOAuthConsumerSupport {
public class CoreOAuthConsumerSupportTests {
@Mock
private ProtectedResourceDetails details;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author Ryan Heaton
*/
@RunWith(MockitoJUnitRunner.class)
public class TestOAuthConsumerContextFilter {
public class OAuthConsumerContextFilterTests {
@Mock
private ProtectedResourceDetails details;
@Mock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* @author Alex Rau
*/
public class TestHttpSessionOAuthRememberMeServices {
public class HttpSessionOAuthRememberMeServicesTests {

@Test
public void testEmptySession() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* @author Ryan Heaton
*/
@RunWith(MockitoJUnitRunner.class)
public class TestCoreOAuthProviderSupport {
public class CoreOAuthProviderSupportTests {
@Mock
private HttpServletRequest request;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* @author Ryan Heaton
*/
@RunWith(MockitoJUnitRunner.class)
public class TestAccessTokenProcessingFilter {
public class AccessTokenProcessingFilterTests {
@Mock
private ConsumerDetails consumerDetails;
@Mock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
* @author Ryan Heaton
*/
@RunWith(MockitoJUnitRunner.class)
public class TestOAuthProcessingFilter {
public class OAuthProcessingFilterTests {
@Mock
private OAuthProviderSupport providerSupport;
@Mock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
/**
* @author Ryan Heaton
*/
public class TestOAuthUserAuthorizationProcessingFilter {
public class OAuthUserAuthorizationProcessingFilterTests {

/**
* tests the attempt to authenticate.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/**
* @author Ryan Heaton
*/
public class TestProtectedResourceProcessingFilter {
public class ProtectedResourceProcessingFilterTests {

/**
* test onValidSignature
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
/**
* @author Ryan Heaton
*/
public class TestUnauthenticatedRequestTokenProcessingFilter {
public class UnauthenticatedRequestTokenProcessingFilterTests {

/**
* test onValidSignature
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
/**
* @author Andrew McCall
*/
public class TestUserAuthorizationSuccessfulAuthenticationHandler {
public class UserAuthorizationSuccessfulAuthenticationHandlerTests {

/**
* test determineTargetUrl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @author Ryan Heaton
* @author Jilles van Gurp
*/
public class TestInMemoryNonceServices {
public class InMemoryNonceServicesTests {

private long now;
private final InMemoryNonceServices nonceServices = new InMemoryNonceServices();
Expand Down
2 changes: 0 additions & 2 deletions spring-security-oauth2/.springBeans
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
<configs>
<config>src/test/resources/org/springframework/security/oauth2/config/xml/authorization-server-custom-grant.xml</config>
<config>src/test/resources/org/springframework/security/oauth2/config/xml/authorization-server-vanilla.xml</config>
<config>src/test/resources/org/springframework/security/oauth2/config/xml/TestResourceBeanDefinitionParser-context.xml</config>
<config>src/test/resources/org/springframework/security/oauth2/config/xml/resource-server-context.xml</config>
<config>src/test/resources/org/springframework/security/oauth2/config/xml/TestClientDetailsServiceBeanDefinitionParser-context.xml</config>
</configs>
<configSets>
</configSets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* @author Ryan Heaton
* @author Dave Syer
*/
public class TestOAuth2RestTemplate {
public class OAuth2RestTemplateTests {

private BaseOAuth2ProtectedResourceDetails resource;

Expand Down
Loading

0 comments on commit 9149052

Please sign in to comment.