net.shibboleth.metadata.dom.saml
Class ValidateValidUntilStageTest
java.lang.Object
net.shibboleth.metadata.dom.BaseDomTest
net.shibboleth.metadata.dom.saml.ValidateValidUntilStageTest
public class ValidateValidUntilStageTest
- extends BaseDomTest
Unit test for ValidateValidUntilStage.
|
Method Summary |
private net.shibboleth.metadata.dom.DomElementItem |
buildDomElementItem(long validUntilInterval)
Creates a DomElementItem that contains a validUntil attribute whose value is now plus a given interval. |
void |
testOptionalCheck()
Tests that optional check flag on the stage operates properly. |
void |
testValidUntilRangeCheck()
Tests that Items within range are not marked as in error and Items outside range are marked as in error. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValidateValidUntilStageTest
public ValidateValidUntilStageTest()
testOptionalCheck
public void testOptionalCheck()
throws Exception
- Tests that optional check flag on the stage operates properly.
- Throws:
Exception
testValidUntilRangeCheck
public void testValidUntilRangeCheck()
throws Exception
- Tests that Items within range are not marked as in error and Items outside range are marked as in error.
- Throws:
Exception
buildDomElementItem
private net.shibboleth.metadata.dom.DomElementItem buildDomElementItem(long validUntilInterval)
throws Exception
- Creates a
DomElementItem that contains a validUntil attribute whose value is now plus a given interval.
- Parameters:
validUntilInterval - interval for the valid until, interval of 0 indicates not to include the validUntil
attribute
- Returns:
- the created Item
- Throws:
Exception
Copyright © 1999-2012. All Rights Reserved.