Class RemoteJwkSetCacheTest
- java.lang.Object
-
- org.geant.idpextension.oidc.metadata.resolver.RemoteJwkSetCacheTest
-
public class RemoteJwkSetCacheTest extends Object
Unit tests forRemoteJwkSetCache.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) org.apache.http.client.HttpClienthttpClient(package private) org.geant.idpextension.oidc.metadata.resolver.RemoteJwkSetCachejwkSetCache(package private) org.opensaml.storage.StorageServicestorageService
-
Constructor Summary
Constructors Constructor Description RemoteJwkSetCacheTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.opensaml.storage.StorageServicebuildStorageService()protected org.apache.http.client.HttpClientcreateMockHttpClient(String output)voidsetup()voidtestInvalidJwk()voidtestNoHttpClient()voidtestNoStorageService()voidtestSuccessNoSecurity()protected StringvalidJwkSet()
-
-
-
Method Detail
-
setup
@BeforeMethod public void setup() throws org.opensaml.core.config.InitializationException, net.shibboleth.utilities.java.support.component.ComponentInitializationException
- Throws:
org.opensaml.core.config.InitializationExceptionnet.shibboleth.utilities.java.support.component.ComponentInitializationException
-
buildStorageService
protected org.opensaml.storage.StorageService buildStorageService() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
testNoHttpClient
public void testNoHttpClient() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
testNoStorageService
public void testNoStorageService() throws net.shibboleth.utilities.java.support.component.ComponentInitializationException- Throws:
net.shibboleth.utilities.java.support.component.ComponentInitializationException
-
testSuccessNoSecurity
public void testSuccessNoSecurity() throws org.apache.http.client.ClientProtocolException, IOException, net.shibboleth.utilities.java.support.component.ComponentInitializationException, URISyntaxException, InterruptedException- Throws:
org.apache.http.client.ClientProtocolExceptionIOExceptionnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionURISyntaxExceptionInterruptedException
-
testInvalidJwk
public void testInvalidJwk() throws org.apache.http.client.ClientProtocolException, IOException, net.shibboleth.utilities.java.support.component.ComponentInitializationException, URISyntaxException- Throws:
org.apache.http.client.ClientProtocolExceptionIOExceptionnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionURISyntaxException
-
createMockHttpClient
protected org.apache.http.client.HttpClient createMockHttpClient(String output) throws org.apache.http.client.ClientProtocolException, IOException
- Throws:
org.apache.http.client.ClientProtocolExceptionIOException
-
validJwkSet
protected String validJwkSet()
-
-