Class FilesystemMetadataResolverTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.saml.metadata.resolver.impl.FilesystemMetadataResolverTest
-
public class FilesystemMetadataResolverTest extends XMLObjectBaseTestCase
-
-
Field Summary
Fields Modifier and Type Field Description private CriteriaSetcriteriaSetprivate StringentityIDprivate FilemdFileprivate FilesystemMetadataResolvermetadataProvider-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description FilesystemMetadataResolverTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestDisappearingMetadataFile()Tests failure mode of a metadata file which disappears after initial creation of the provider.voidtestExpiredMetadataWithValidRequiredAndNoFailFast()voidtestGetEntityDescriptor()Tests theAbstractMetadataResolver.lookupEntityID(String)method.voidtestInvalidMetadataFile()Tests failure mode of an invalid metadata file that is actually a directory.voidtestNonexistentMetadataFile()Tests failure mode of an invalid metadata file that does not exist.voidtestRecoveryFromNoFailFast()Tests failfast init of false, with graceful recovery when file later appears.voidtestUnreadableMetadataFile()Tests failure mode of an invalid metadata file that is unreadable.-
Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
metadataProvider
private FilesystemMetadataResolver metadataProvider
-
mdFile
private File mdFile
-
entityID
private String entityID
-
criteriaSet
private CriteriaSet criteriaSet
-
-
Method Detail
-
testGetEntityDescriptor
public void testGetEntityDescriptor() throws ResolverExceptionTests theAbstractMetadataResolver.lookupEntityID(String)method.- Throws:
ResolverException- ...
-
testNonexistentMetadataFile
public void testNonexistentMetadataFile() throws ResolverException, ComponentInitializationExceptionTests failure mode of an invalid metadata file that does not exist.- Throws:
ResolverException- ...ComponentInitializationException- ...
-
testInvalidMetadataFile
public void testInvalidMetadataFile() throws IOException, ResolverException, ComponentInitializationExceptionTests failure mode of an invalid metadata file that is actually a directory.- Throws:
IOException- ...ResolverException- ...ComponentInitializationException- ...
-
testUnreadableMetadataFile
public void testUnreadableMetadataFile() throws IOException, ResolverException, ComponentInitializationExceptionTests failure mode of an invalid metadata file that is unreadable.- Throws:
IOException- ...ResolverException- ...ComponentInitializationException- ...
-
testDisappearingMetadataFile
public void testDisappearingMetadataFile() throws IOException, ResolverExceptionTests failure mode of a metadata file which disappears after initial creation of the provider.- Throws:
IOException- ...ResolverException- ...
-
testRecoveryFromNoFailFast
public void testRecoveryFromNoFailFast() throws IOException, InterruptedExceptionTests failfast init of false, with graceful recovery when file later appears.- Throws:
IOException- ...InterruptedException- ...
-
testExpiredMetadataWithValidRequiredAndNoFailFast
public void testExpiredMetadataWithValidRequiredAndNoFailFast() throws URISyntaxException, ResolverException- Throws:
URISyntaxExceptionResolverException
-
-