public class SetValidUntilStageTest extends BaseDOMTest
SetValidUntilStage unit test.testingClass| Constructor and Description |
|---|
SetValidUntilStageTest()
Constructor sets class under test.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
assertXMLIdentical, countErrors, getParserPool, readDOMItem, readXMLData, setUpclassRelativeResource, getClasspathResource, packageRelativeResource, simpleClassRelativeNamepublic SetValidUntilStageTest()
public void testWithoutExistingValidUntil()
throws Exception
Exception - thrown if there is an errorpublic void testWithExistingValidUntil()
throws Exception
Exception - thrown if there is an errorpublic void testWithNonDescriptorMetadataElement()
throws Exception
Exception - thrown if there is an errorpublic void testNegativeDuration()
Copyright © 1999–2015. All rights reserved.