net.shibboleth.metadata.dom.saml
Class SetCacheDurationStageTest

java.lang.Object
  extended by net.shibboleth.metadata.dom.saml.SetCacheDurationStageTest

public class SetCacheDurationStageTest
extends Object

Unit test for SetCacheDurationStage.


Constructor Summary
SetCacheDurationStageTest()
           
 
Method Summary
 void testNegativeDuration()
          Tests that the stage properly rejects negative durations.
 void testWithExistingCacheDuration()
          Tests that the duration is properly set on an element when it already contains a duration.
 void testWithNonDescriptorMetadataElement()
          Tests that the stage ignores elements which are not EntityDescriptors or EntitiesDescriptors.
 void testWithoutExistingCacheDuration()
          Tests that the duration is properly set on an element when it doesn't already contain a duration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetCacheDurationStageTest

public SetCacheDurationStageTest()
Method Detail

testWithoutExistingCacheDuration

public void testWithoutExistingCacheDuration()
                                      throws Exception
Tests that the duration is properly set on an element when it doesn't already contain a duration.

Throws:
Exception - thrown if there is an error

testWithExistingCacheDuration

public void testWithExistingCacheDuration()
                                   throws Exception
Tests that the duration is properly set on an element when it already contains a duration.

Throws:
Exception - thrown if there is an error

testWithNonDescriptorMetadataElement

public void testWithNonDescriptorMetadataElement()
                                          throws Exception
Tests that the stage ignores elements which are not EntityDescriptors or EntitiesDescriptors.

Throws:
Exception - thrown if there is an error

testNegativeDuration

public void testNegativeDuration()
Tests that the stage properly rejects negative durations.



Copyright © 1999-2012. All Rights Reserved.