public class ValidateValidUntilStageTest extends BaseDOMTest
ValidateValidUntilStage.testingClass| Constructor and Description |
|---|
ValidateValidUntilStageTest()
Constructor sets class under test.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
assertXMLIdentical, countErrors, getParserPool, readDOMItem, readXMLData, setUpclassRelativeResource, getClasspathResource, packageRelativeResource, simpleClassRelativeNamepublic ValidateValidUntilStageTest()
public void testOptionalCheck()
throws Exception
Exceptionpublic void testValidUntilRangeCheck()
throws Exception
Exceptionprivate net.shibboleth.metadata.dom.DOMElementItem buildDomElementItem(long validUntilInterval)
throws Exception
DOMElementItem that contains a validUntil attribute whose value is now plus a given interval.validUntilInterval - interval for the valid until, interval of 0 indicates not to include the validUntil
attributeExceptionCopyright © 1999–2015. All rights reserved.