public class EntityRoleFilterStageTest extends BaseDOMTest
EntityRoleFilterStage.testingClass| Constructor and Description |
|---|
EntityRoleFilterStageTest()
Constructor sets class under test.
|
| Modifier and Type | Method and Description |
|---|---|
private List<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
EntityRoleFilterStage.isRemovingEntitylessEntitiesDescriptor() is false. |
void |
testDontRemoveRolelessEntityDescriptor()
Test that EntityDescriptors that have had all their roles removed are not themselves removed if
EntityRoleFilterStage.isRemovingRolelessEntities() is false. |
void |
testEntitiesDescriptorFiltering()
Test that role filtering is performed on descendant elements of metadata collection elements.
|
void |
testRemoveEntitylessEntitiesDescriptor()
Test that EntitiesDescriptors that have had all their EntityDescriptor children remove are themselves removed.
|
void |
testRoleBlacklist()
Test that blacklisted roles are removed and all other roles are retained.
|
void |
testRoleWhitelist()
Test that whitelisted roles are retained and all other roles are removed.
|
assertXMLIdentical, countErrors, getParserPool, readDOMItem, readXMLData, setUpclassRelativeResource, getClasspathResource, packageRelativeResource, simpleClassRelativeNamepublic EntityRoleFilterStageTest()
public void testRoleWhitelist()
throws Exception
Exceptionpublic void testRoleBlacklist()
throws Exception
Exceptionpublic void testDontRemoveRolelessEntityDescriptor()
throws Exception
EntityRoleFilterStage.isRemovingRolelessEntities() is false.Exceptionpublic void testEntitiesDescriptorFiltering()
throws Exception
Exceptionpublic void testRemoveEntitylessEntitiesDescriptor()
throws Exception
Exceptionpublic void testDontRemoveEntitylessEntitiesDescriptor()
throws Exception
EntityRoleFilterStage.isRemovingEntitylessEntitiesDescriptor() is false.ExceptionCopyright © 1999–2015. All rights reserved.