Class NameIDFormatFilterTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.saml.metadata.resolver.filter.impl.NameIDFormatFilterTest
-
- All Implemented Interfaces:
Predicate<EntityDescriptor>
public class NameIDFormatFilterTest extends XMLObjectBaseTestCase implements Predicate<EntityDescriptor>
-
-
Field Summary
Fields Modifier and Type Field Description private Collection<String>formatsprivate FilemdFileprivate NameIDFormatFiltermetadataFilterprivate FilesystemMetadataResolvermetadataProvider-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description NameIDFormatFilterTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtest()booleantest(EntityDescriptor input)voidtestWithRemoval()-
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
-
metadataFilter
private NameIDFormatFilter metadataFilter
-
formats
private Collection<String> formats
-
-
Method Detail
-
test
public void test() throws ComponentInitializationException, ResolverException
-
testWithRemoval
public void testWithRemoval() throws ComponentInitializationException, ResolverException
-
test
public boolean test(EntityDescriptor input)
- Specified by:
testin interfacePredicate<EntityDescriptor>
-
-