public class FilesystemMetadataResolverTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private net.shibboleth.utilities.java.support.resolver.CriteriaSet |
criteriaSet |
private String |
entityID |
private File |
mdFile |
private org.opensaml.saml.metadata.resolver.impl.FilesystemMetadataResolver |
metadataProvider |
| Constructor and Description |
|---|
FilesystemMetadataResolverTest() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
setUp() |
void |
testDisappearingMetadataFile()
Tests failure mode of a metadata file which disappears after initial creation of the provider.
|
void |
testExpiredMetadataWithValidRequiredAndNoFailFast() |
void |
testGetEntityDescriptor()
Tests the
AbstractMetadataResolver.lookupEntityID(String) method. |
void |
testInvalidMetadataFile()
Tests failure mode of an invalid metadata file that is actually a directory.
|
void |
testNonexistentMetadataFile()
Tests failure mode of an invalid metadata file that does not exist.
|
void |
testRecoveryFromNoFailFast()
Tests failfast init of false, with graceful recovery when file later appears.
|
void |
testUnreadableMetadataFile()
Tests failure mode of an invalid metadata file that is unreadable.
|
assertXMLEquals, assertXMLEquals, buildXMLObject, fetchDuration, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElementprivate org.opensaml.saml.metadata.resolver.impl.FilesystemMetadataResolver metadataProvider
private File mdFile
private String entityID
private net.shibboleth.utilities.java.support.resolver.CriteriaSet criteriaSet
public void testGetEntityDescriptor()
throws net.shibboleth.utilities.java.support.resolver.ResolverException
AbstractMetadataResolver.lookupEntityID(String) method.net.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testNonexistentMetadataFile()
throws net.shibboleth.utilities.java.support.resolver.ResolverException,
net.shibboleth.utilities.java.support.component.ComponentInitializationException
net.shibboleth.utilities.java.support.resolver.ResolverExceptionnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionpublic void testInvalidMetadataFile()
throws IOException,
net.shibboleth.utilities.java.support.resolver.ResolverException,
net.shibboleth.utilities.java.support.component.ComponentInitializationException
IOExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionpublic void testUnreadableMetadataFile()
throws IOException,
net.shibboleth.utilities.java.support.resolver.ResolverException,
net.shibboleth.utilities.java.support.component.ComponentInitializationException
IOExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionpublic void testDisappearingMetadataFile()
throws IOException,
net.shibboleth.utilities.java.support.resolver.ResolverException
IOExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionpublic void testRecoveryFromNoFailFast()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testExpiredMetadataWithValidRequiredAndNoFailFast()
throws URISyntaxException,
net.shibboleth.utilities.java.support.resolver.ResolverException
URISyntaxExceptionnet.shibboleth.utilities.java.support.resolver.ResolverExceptionCopyright © 1999–2015. All rights reserved.