|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.shibboleth.metadata.dom.BaseDomTest
net.shibboleth.metadata.dom.saml.EntityRoleFilterStageTest
public class EntityRoleFilterStageTest
Unit test for EntityRoleFilterStage.
| Constructor Summary | |
|---|---|
EntityRoleFilterStageTest()
|
|
| Method Summary | |
|---|---|
private List<net.shibboleth.metadata.dom.DomElementItem> |
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. |
| Methods inherited from class net.shibboleth.metadata.dom.BaseDomTest |
|---|
assertXmlIdentical, getParserPool, readTestRelativeXmlData, readXmlData, setUp |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EntityRoleFilterStageTest()
| Method Detail |
|---|
public void testRoleWhitelist()
throws Exception
Exception
public void testRoleBlacklist()
throws Exception
Exception
public void testDontRemoveRolelessEntityDescriptor()
throws Exception
EntityRoleFilterStage.isRemovingRolelessEntities() is false.
Exception
public void testEntitiesDescriptorFiltering()
throws Exception
Exception
public void testRemoveEntitylessEntitiesDescriptor()
throws Exception
Exception
public void testDontRemoveEntitylessEntitiesDescriptor()
throws Exception
EntityRoleFilterStage.isRemovingEntitylessEntitiesDescriptor() is false.
Exception
private List<net.shibboleth.metadata.dom.DomElementItem> buildMetadataCollection()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||