public class EntityFilterStageTest extends BaseDOMTest
EntityFilterStage.testingClass| Constructor and Description |
|---|
EntityFilterStageTest()
Constructor sets class under test.
|
| Modifier and Type | Method and Description |
|---|---|
private Collection<net.shibboleth.metadata.Item<Element>> |
buildMetadataCollection()
Build up a metadata collection containing 3 EntityDescriptors.
|
void |
testDontRemoveEntitylessEntitiesDescriptor()
Test that EntitiesDescriptors that have had all their EntityDescriptor children remove are not themselves removed
when
EntityFilterStage.isRemovingEntitylessEntitiesDescriptor() is false. |
void |
testEntitiesDescriptorFiltering()
Test that filtering logic descends in to EntitiesDescriptors.
|
void |
testEntityBlacklist()
Test blacklisted entity is remove and ensure everything else is retained.
|
void |
testEntityWhitelist()
Test whitelisted entity is retained and ensure everything else is removed.
|
void |
testRemoveEntitylessEntitiesDescriptor()
Test that EntitiesDescriptors that have had all their EntityDescriptor children remove are themselves removed.
|
assertXMLIdentical, countErrors, getParserPool, readDOMItem, readXMLData, setUpclassRelativeResource, getClasspathResource, packageRelativeResource, simpleClassRelativeNamepublic EntityFilterStageTest()
public void testEntityWhitelist()
throws Exception
Exceptionpublic void testEntityBlacklist()
throws Exception
Exceptionpublic void testEntitiesDescriptorFiltering()
throws Exception
Exceptionpublic void testRemoveEntitylessEntitiesDescriptor()
throws Exception
Exceptionpublic void testDontRemoveEntitylessEntitiesDescriptor()
throws Exception
EntityFilterStage.isRemovingEntitylessEntitiesDescriptor() is false.Exceptionprivate Collection<net.shibboleth.metadata.Item<Element>> buildMetadataCollection() throws Exception
ExceptionCopyright © 1999–2016. All rights reserved.