public class FilesystemMetadataResolverTest
extends org.opensaml.core.xml.XMLObjectBaseTestCase
| Modifier and Type | Field and Description |
|---|---|
private 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, unmarshallElement, unmarshallElementprivate org.opensaml.saml.metadata.resolver.impl.FilesystemMetadataResolver metadataProvider
private File mdFile
private String entityID
private CriteriaSet criteriaSet
public void testGetEntityDescriptor()
throws ResolverException
AbstractMetadataResolver.lookupEntityID(String) method.ResolverExceptionpublic void testNonexistentMetadataFile()
throws ResolverException,
ComponentInitializationException
public void testInvalidMetadataFile()
throws IOException,
ResolverException,
ComponentInitializationException
public void testUnreadableMetadataFile()
throws IOException,
ResolverException,
ComponentInitializationException
public void testDisappearingMetadataFile()
throws IOException,
ResolverException
IOExceptionResolverExceptionpublic void testRecoveryFromNoFailFast()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic void testExpiredMetadataWithValidRequiredAndNoFailFast()
throws URISyntaxException,
ResolverException
URISyntaxExceptionResolverExceptionCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.