java.lang.Object
dev.metaschema.model.testing.testsuite.TestCollection
- All Implemented Interfaces:
dev.metaschema.core.model.IBoundObject
@MetaschemaAssembly(formalName="Test Collection",
description="A collection of test scenarios located at a specific path.",
name="test-collection",
moduleClass=MetaschemaTestSuiteModule.class)
public class TestCollection
extends Object
implements dev.metaschema.core.model.IBoundObject
A collection of test scenarios located at a specific path.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newdev.metaschema.model.testing.testsuite.TestCollectioninstance with no metadata.TestCollection(dev.metaschema.core.model.IMetaschemaData data) Constructs a newdev.metaschema.model.testing.testsuite.TestCollectioninstance with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddTestScenario(TestScenario item) Add a newTestScenarioitem to the underlying collection.Get the location.dev.metaschema.core.model.IMetaschemaDatagetName()Get the name.Get the test Scenario.booleanRemove the first matchingTestScenarioitem from the underlying collection.voidsetLocation(URI value) Set the location.voidSet the name.voidsetTestScenarios(List<TestScenario> value) Set the test Scenario.toString()
-
Constructor Details
-
TestCollection
public TestCollection()Constructs a newdev.metaschema.model.testing.testsuite.TestCollectioninstance with no metadata. -
TestCollection
Constructs a newdev.metaschema.model.testing.testsuite.TestCollectioninstance with the specified metadata.- Parameters:
data- the metaschema data, ornullif none
-
-
Method Details
-
getMetaschemaData
- Specified by:
getMetaschemaDatain interfacedev.metaschema.core.model.IBoundObject
-
getLocation
Get the location.A URI reference to the location of this test collection.
- Returns:
- the location value
-
setLocation
Set the location.A URI reference to the location of this test collection.
- Parameters:
value- the location value to set
-
getName
Get the name.The name of this test collection.
- Returns:
- the name value
-
setName
Set the name.The name of this test collection.
- Parameters:
value- the name value to set
-
getTestScenarios
Get the test Scenario.A test scenario that validates a metaschema and its content.
- Returns:
- the test-scenario value
-
setTestScenarios
Set the test Scenario.A test scenario that validates a metaschema and its content.
- Parameters:
value- the test-scenario value to set
-
addTestScenario
Add a newTestScenarioitem to the underlying collection.- Parameters:
item- the item to add- Returns:
true
-
removeTestScenario
Remove the first matchingTestScenarioitem from the underlying collection.- Parameters:
item- the item to remove- Returns:
trueif the item was removed orfalseotherwise
-
toString
-