net.shibboleth.metadata.dom.saml
Class EntityRegistrationAuthorityFilterStageTest

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

public class EntityRegistrationAuthorityFilterStageTest
extends BaseDomTest

Unit test for EntityRegistrationAuthorityFilterStage.


Constructor Summary
EntityRegistrationAuthorityFilterStageTest()
           
 
Method Summary
private  Collection<net.shibboleth.metadata.dom.DomElementItem> buildMetadataCollection()
          Build up a metadata collection containing 3 EntityDescriptors.
 void testAuthorityBlacklist()
          Tests filtering out Items based on an authority blacklist.
 void testAuthorityWhitelist()
          Tests filtering out Items based on an authority whitelist.
 void testDontRemoveEntitylessEntitiesDescriptor()
          Tests not removing EntitiesDescriptors that no longer contain any EntityDescriptors.
 void testRemoveEntitylessEntitiesDescriptor()
          Tests removing EntitiesDescriptors that no longer contain any EntityDescriptors.
 void testRequireRegistrationInfo()
          Tests filtering out Items that do not contain registration information.
 
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

EntityRegistrationAuthorityFilterStageTest

public EntityRegistrationAuthorityFilterStageTest()
Method Detail

testAuthorityWhitelist

public void testAuthorityWhitelist()
                            throws Exception
Tests filtering out Items based on an authority whitelist.

Throws:
Exception

testAuthorityBlacklist

public void testAuthorityBlacklist()
                            throws Exception
Tests filtering out Items based on an authority blacklist.

Throws:
Exception

testRequireRegistrationInfo

public void testRequireRegistrationInfo()
                                 throws Exception
Tests filtering out Items that do not contain registration information.

Throws:
Exception

testRemoveEntitylessEntitiesDescriptor

public void testRemoveEntitylessEntitiesDescriptor()
                                            throws Exception
Tests removing EntitiesDescriptors that no longer contain any EntityDescriptors.

Throws:
Exception

testDontRemoveEntitylessEntitiesDescriptor

public void testDontRemoveEntitylessEntitiesDescriptor()
                                                throws Exception
Tests not removing EntitiesDescriptors that no longer contain any EntityDescriptors.

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.