Package org.opengis.cite.wms13

# Class TestRunArguments

java.lang.Object
org.opengis.cite.wms13.TestRunArguments

public class TestRunArguments extends Object
Provides utility methods that assist with the handling of test run arguments.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `TestRunArguments()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Document`
  `propertiesAsDocument(Properties props)`
  Creates a document that contains a simple XML representation of the given set of properties.
  `static Properties`
  `validateArguments(Document testRunArgs)`
  Validates the given test run arguments.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### TestRunArguments

    public TestRunArguments()

- ## Method Details

  - ### validateArguments

    public static Properties validateArguments(Document testRunArgs)
    Validates the given test run arguments. An `IllegalArgumentException` is thrown if a required argument is missing or invalid. The recognized arguments are listed below.
    - "capabilities-url" (required)
    - "updatesequence" (default: "auto")
    - "queryable" (default: false)
    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.

  - ### propertiesAsDocument

    public static Document propertiesAsDocument(Properties props)
    Creates 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.