net.shibboleth.metadata.dom.saml
Class SetValidUntilStageTest

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

public class SetValidUntilStageTest
extends Object

SetValidUntilStage unit test.


Constructor Summary
SetValidUntilStageTest()
           
 
Method Summary
 void testNegativeDuration()
          Tests that the stage properly rejects negative durations.
 void testWithExistingValidUntil()
          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 testWithoutExistingValidUntil()
          Tests that the validUntil attribute is properly set on an element when it doesn't already contain one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetValidUntilStageTest

public SetValidUntilStageTest()
Method Detail

testWithoutExistingValidUntil

public void testWithoutExistingValidUntil()
                                   throws Exception
Tests that the validUntil attribute is properly set on an element when it doesn't already contain one.

Throws:
Exception - thrown if there is an error

testWithExistingValidUntil

public void testWithExistingValidUntil()
                                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.