Package io.jans.configapi.core.test
Class BaseTest
- java.lang.Object
- 
- io.jans.configapi.core.test.BaseTest
 
- 
 public class BaseTest extends Object 
- 
- 
Field SummaryFields Modifier and Type Field Description protected StringaccessTokenprotected static StringAUTHORIZATIONprotected static StringAUTHORIZATION_TYPEprotected org.apache.commons.codec.binary.Base64base64protected static StringCONTENT_TYPEprotected HttpServicehttpServiceprotected org.apache.logging.log4j.Loggerlogprotected static Map<String,String>propertiesMapprotected ResteasyServiceresteasyServiceprotected TokenServicetokenService
 - 
Constructor SummaryConstructors Constructor Description BaseTest()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringdecodeFileValue(String value)voidfinalize()voidgetAccessToken()protected StringgetCredentials(String clientId, String clientSecret)protected StringgetEncodedCredentials()Returns the client credentials encoded using base64.protected HttpServicegetHttpService()protected ResteasyServicegetResteasyService()protected StringgetToken(String tokenUrl, String clientId, String clientSecret, io.jans.as.model.common.GrantType grantType, String scopes)protected TokenServicegetTokenService()voidinitTestSuite(org.testng.ITestContext context)protected booleanisServiceDeployed(String serviceName)
 
- 
- 
- 
Field Detail- 
CONTENT_TYPEprotected static final String CONTENT_TYPE - See Also:
- Constant Field Values
 
 - 
AUTHORIZATIONprotected static final String AUTHORIZATION - See Also:
- Constant Field Values
 
 - 
AUTHORIZATION_TYPEprotected static final String AUTHORIZATION_TYPE - See Also:
- Constant Field Values
 
 - 
logprotected org.apache.logging.log4j.Logger log 
 - 
base64protected org.apache.commons.codec.binary.Base64 base64 
 - 
resteasyServiceprotected ResteasyService resteasyService 
 - 
httpServiceprotected HttpService httpService 
 - 
tokenServiceprotected TokenService tokenService 
 - 
accessTokenprotected String accessToken 
 
- 
 - 
Method Detail- 
initTestSuite@BeforeSuite public void initTestSuite(org.testng.ITestContext context) throws Exception- Throws:
- Exception
 
 - 
getTokenprotected String getToken(String tokenUrl, String clientId, String clientSecret, io.jans.as.model.common.GrantType grantType, String scopes) 
 - 
getHttpServiceprotected HttpService getHttpService() 
 - 
getResteasyServiceprotected ResteasyService getResteasyService() 
 - 
getTokenServiceprotected TokenService getTokenService() 
 - 
getCredentialsprotected String getCredentials(String clientId, String clientSecret) throws UnsupportedEncodingException - Throws:
- UnsupportedEncodingException
 
 - 
getEncodedCredentialsprotected String getEncodedCredentials() Returns the client credentials encoded using base64.- Returns:
- The encoded client credentials.
 
 - 
isServiceDeployedprotected boolean isServiceDeployed(String serviceName) 
 
- 
 
-