net.shibboleth.metadata.dom.saml
Class EntityFilterStageTest

java.lang.Object
  extended by net.shibboleth.metadata.dom.BaseDomTest
      extended by net.shibboleth.metadata.dom.saml.EntityFilterStageTest

public class EntityFilterStageTest
extends BaseDomTest

Unit test for EntityFilterStage.


Constructor Summary
EntityFilterStageTest()
           
 
Method Summary
private  Collection<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 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.
 
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

EntityFilterStageTest

public EntityFilterStageTest()
Method Detail

testEntityWhitelist

public void testEntityWhitelist()
                         throws Exception
Test whitelisted entity is retained and ensure everything else is removed.

Throws:
Exception

testEntityBlacklist

public void testEntityBlacklist()
                         throws Exception
Test blacklisted entity is remove and ensure everything else is retained.

Throws:
Exception

testEntitiesDescriptorFiltering

public void testEntitiesDescriptorFiltering()
                                     throws Exception
Test that filtering logic descends in to EntitiesDescriptors.

Throws:
Exception

testRemoveEntitylessEntitiesDescriptor

public void testRemoveEntitylessEntitiesDescriptor()
                                            throws Exception
Test that EntitiesDescriptors that have had all their EntityDescriptor children remove are themselves removed.

Throws:
Exception

testDontRemoveEntitylessEntitiesDescriptor

public void testDontRemoveEntitylessEntitiesDescriptor()
                                                throws Exception
Test that EntitiesDescriptors that have had all their EntityDescriptor children remove are not themselves removed when EntityFilterStage.isRemovingEntitylessEntitiesDescriptor() is false.

Throws:
Exception

buildMetadataCollection

private Collection<net.shibboleth.metadata.dom.DomElementItem> buildMetadataCollection()
                                                                                throws Exception
Build up a metadata collection containing 3 EntityDescriptors.

Throws:
Exception


Copyright © 1999-2012. All Rights Reserved.