java.lang.Object
dev.metaschema.model.testing.testsuite.TestSuite
All Implemented Interfaces:
IBoundObject

@MetaschemaAssembly(formalName="Test Suite", description="The root element containing a collection of test collections.", name="test-suite", moduleClass=MetaschemaTestSuiteModule.class, rootName="test-suite") public class TestSuite extends Object implements IBoundObject
The root element containing a collection of test collections.
  • Constructor Details

    • TestSuite

      public TestSuite()
      Constructs a new dev.metaschema.model.testing.testsuite.TestSuite instance with no metadata.
    • TestSuite

      public TestSuite(IMetaschemaData data)
      Constructs a new dev.metaschema.model.testing.testsuite.TestSuite instance with the specified metadata.
      Parameters:
      data - the metaschema data, or null if none
  • Method Details

    • getMetaschemaData

      public IMetaschemaData getMetaschemaData()
      Description copied from interface: IBoundObject
      Get additional Metaschema-related information for the object (i.e., resource location).
      Specified by:
      getMetaschemaData in interface IBoundObject
      Returns:
      the Metaschema-related information
    • getTestCollections

      @NonNull public List<TestCollection> getTestCollections()
      Get the test Collection.

      A collection of test scenarios located at a specific path.

      Returns:
      the test-collection value
    • setTestCollections

      public void setTestCollections(@NonNull List<TestCollection> value)
      Set the test Collection.

      A collection of test scenarios located at a specific path.

      Parameters:
      value - the test-collection value to set
    • addTestCollection

      public boolean addTestCollection(TestCollection item)
      Add a new TestCollection item to the underlying collection.
      Parameters:
      item - the item to add
      Returns:
      true
    • removeTestCollection

      public boolean removeTestCollection(TestCollection item)
      Remove the first matching TestCollection item from the underlying collection.
      Parameters:
      item - the item to remove
      Returns:
      true if the item was removed or false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object