Class TestRunArguments

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

public class TestRunArguments extends Object
Provides utility methods that assist with the handling of test run arguments.
  • 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.
      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.