Class OAuthClientDetailsBuilder
java.lang.Object
org.junit.rules.ExternalResource
de.hybris.platform.outboundservices.OAuthClientDetailsBuilder
- All Implemented Interfaces:
org.junit.rules.TestRule
public class OAuthClientDetailsBuilder
extends org.junit.rules.ExternalResource
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafter()build()voidcleanup()static OAuthClientDetailsBuilderwithClientId(String clientId) withOAuthUrl(String url) adds a scope to the existing scopeswithScopes(Set<String> scopes) replaces existing scopes with the providedSetof scopesMethods inherited from class org.junit.rules.ExternalResource
apply, before
-
Field Details
-
DEFAULT_CLIENT_ID
- See Also:
-
DEFAULT_OAUTH_URL
- See Also:
-
-
Constructor Details
-
OAuthClientDetailsBuilder
public OAuthClientDetailsBuilder()
-
-
Method Details
-
oAuthClientDetailsBuilder
-
withClientId
-
withOAuthUrl
-
withScopes
replaces existing scopes with the providedSetof scopes- Parameters:
scopes- Set of provided scopes.- Returns:
OAuthClientDetailsBuilderwith a mutable copy of the providedscopes, ifscopesis non-null; otherwise an empty mutable set.
-
withScope
adds a scope to the existing scopes- Parameters:
scope- a scope to be added- Returns:
OAuthClientDetailsBuilderafter adding the provided scope to the existing scopes, if scope is non-null.
-
build
-
after
protected void after()- Overrides:
afterin classorg.junit.rules.ExternalResource
-
cleanup
public void cleanup()
-