Class RemoteJwkSetCacheTest


  • public class RemoteJwkSetCacheTest
    extends Object
    Unit tests for RemoteJwkSetCache.
    • Field Detail

      • jwkSetCache

        org.geant.idpextension.oidc.metadata.resolver.RemoteJwkSetCache jwkSetCache
      • storageService

        org.opensaml.storage.StorageService storageService
      • httpClient

        org.apache.http.client.HttpClient httpClient
    • Constructor Detail

      • RemoteJwkSetCacheTest

        public RemoteJwkSetCacheTest()
    • 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.InitializationException
        net.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
      • testInvalidJwk

        public void testInvalidJwk()
                            throws org.apache.http.client.ClientProtocolException,
                                   IOException,
                                   net.shibboleth.utilities.java.support.component.ComponentInitializationException,
                                   URISyntaxException
        Throws:
        org.apache.http.client.ClientProtocolException
        IOException
        net.shibboleth.utilities.java.support.component.ComponentInitializationException
        URISyntaxException
      • createMockHttpClient

        protected org.apache.http.client.HttpClient createMockHttpClient​(String output)
                                                                  throws org.apache.http.client.ClientProtocolException,
                                                                         IOException
        Throws:
        org.apache.http.client.ClientProtocolException
        IOException
      • validJwkSet

        protected String validJwkSet()