Package org.opengis.cite.csw20
Class TestRunArguments
java.lang.Object
org.opengis.cite.csw20.TestRunArguments
Provides utility methods that assist with the handling of test run arguments.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic DocumentpropertiesAsDocument(Properties props) Creates a document that contains a simple XML representation of the given set of properties.static PropertiesvalidateArguments(Document testRunArgs) Validates the given test run arguments.
- 
Constructor Details- 
TestRunArgumentspublic TestRunArguments()
 
- 
- 
Method Details- 
validateArgumentsValidates the given test run arguments. AnIllegalArgumentExceptionis thrown if a required argument is missing or invalid. The recognized arguments are listed below.- "capabilities.url" (required)
 - Parameters:
- testRunArgs- A Document containing a set of XML properties; each entry (key-value pair) is a test run argument.
- Returns:
- A valid set of test run arguments.
 
- 
propertiesAsDocumentCreates a document that contains a simple XML representation of the given set of properties.- Parameters:
- props- A set of properties (key-value pairs).
- Returns:
- A Document node, wherein each property is represented by an entry[@key] element.
 
 
-