Package com.sodius.oslc.domain.qm.model
Class TestResult
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
com.sodius.oslc.domain.qm.model.TestResult
- All Implemented Interfaces:
IExtendedResource,IResource
@OslcResourceShape(title="Test Result Resource Shape",
describes="http://open-services.net/ns/qm#TestResult")
@OslcNamespace("http://open-services.net/ns/qm#")
public class TestResult
extends AbstractResource
Describes the outcome of attempting to execute a test.
See the OSLC Change Quality specification for details:
https://open-services.net/specifications/quality-management-2.0/
- Since:
- 1.5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAffectedByChangeRequest(Link affectingChangeRequest) voidaddContributor(URI contributor) Adds a contributor.voidaddCreator(URI creator) Adds a creator.Link[]URI[]Gets the contributors.URI[]Gets the creators.Gets the running environment.Returns a short identifier for the resource, such as a number.getTitle()voidsetAffectedByChangeRequests(Link[] affectedByChangeRequests) voidsetContributors(URI[] contributors) Sets the contributors.voidsetCreated(Date created) voidsetCreators(URI[] creators) Sets the creators.voidsetExecutesTestScript(Link executesTestScript) voidsetIdentifier(String identifier) voidsetInstanceShape(URI instanceShape) voidsetModified(Date modified) voidsetProducedByTestExecutionRecord(Link producedByTestExecutionRecord) voidsetReportsOnTestCase(Link reportsOnTestCase) voidsetReportsOnTestPlan(Link reportsOnTestPlan) voidsetRunsOnTestEnvironment(Link runsOnTestEnvironment) Sets the running environment.voidsetServiceProvider(URI serviceProvider) voidsetShortId(String shortId) Sets a short identifier for the resource.voidvoidMethods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Constructor Details
-
TestResult
public TestResult() -
TestResult
-
-
Method Details
-
addContributor
Adds a contributor.- Parameters:
contributor- the contributor to add.- Since:
- 3.9.0
-
getContributors
@OslcName("contributor") @OslcPropertyDefinition("http://purl.org/dc/terms/contributor") @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcTitle("Contributors") public URI[] getContributors()Gets the contributors.- Returns:
- the contributors.
- Since:
- 3.9.0
-
setContributors
Sets the contributors.- Parameters:
contributors- the contributors.- Since:
- 3.9.0
-
getCreated
@OslcDescription("Timestamp of resource creation.") @OslcPropertyDefinition("http://purl.org/dc/terms/created") @OslcReadOnly @OslcTitle("Created") public Date getCreated() -
setCreated
-
addCreator
Adds a creator.- Parameters:
creator- the creator to add.- Since:
- 3.9.0
-
getCreators
@OslcDescription("Creator of the resource.") @OslcName("creator") @OslcPropertyDefinition("http://purl.org/dc/terms/creator") @OslcRange("http://xmlns.com/foaf/0.1/Person") @OslcTitle("Creators") public URI[] getCreators()Gets the creators.- Returns:
- the creators.
- Since:
- 3.9.0
-
setCreators
Sets the creators.- Parameters:
creators- the creators.- Since:
- 3.9.0
-
getIdentifier
@OslcDescription("A unique identifier for a resource. Assigned by the service provider when a resource is created. Not intended for end-user display.") @OslcOccurs(ExactlyOne) @OslcPropertyDefinition("http://purl.org/dc/terms/identifier") @OslcReadOnly @OslcTitle("Identifier") public String getIdentifier() -
setIdentifier
-
getModified
@OslcDescription("Timestamp of latest resource modification.") @OslcPropertyDefinition("http://purl.org/dc/terms/modified") @OslcReadOnly @OslcTitle("Modified") public Date getModified() -
setModified
-
getTitle
@OslcDescription("Title (reference: Dublin Core) or often a single line summary of the resource represented as rich text in XHTML content.") @OslcOccurs(ExactlyOne) @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcTitle("Title") @OslcValueType(XMLLiteral) public String getTitle() -
setTitle
-
getShortId
Returns a short identifier for the resource, such as a number.- Returns:
- a short identifier.
- Since:
- 3.9.0
-
setShortId
Sets a short identifier for the resource.- Parameters:
shortId- the short identifier.- Since:
- 3.9.0
-
getInstanceShape
@OslcDescription("Resource Shape that provides hints as to resource property value-types and allowed values. ") @OslcPropertyDefinition("http://open-services.net/ns/core#instanceShape") @OslcRange("http://open-services.net/ns/core#ResourceShape") @OslcTitle("Instance Shape") public URI getInstanceShape() -
setInstanceShape
-
getServiceProvider
@OslcDescription("The scope of a resource is a URI for the resource\'s OSLC Service Provider.") @OslcPropertyDefinition("http://open-services.net/ns/core#serviceProvider") @OslcRange("http://open-services.net/ns/core#ServiceProvider") @OslcTitle("Service Provider") public URI getServiceProvider() -
setServiceProvider
-
getStatus
@OslcDescription("Used to indicate the state of the Test Result based on values defined by the service provider.") @OslcOccurs(ZeroOrOne) @OslcPropertyDefinition("http://open-services.net/ns/qm#status") @OslcTitle("Status") @OslcValueType(XMLLiteral) public String getStatus() -
setStatus
-
addAffectedByChangeRequest
-
getAffectedByChangeRequests
@OslcDescription("Change request that affects the Test Result.") @OslcName("affectedByChangeRequest") @OslcPropertyDefinition("http://open-services.net/ns/qm#affectedByChangeRequest") @OslcRange("http://open-services.net/ns/cm#ChangeRequest") @OslcReadOnly(false) @OslcTitle("Affected By Change Request") public Link[] getAffectedByChangeRequests() -
setAffectedByChangeRequests
-
getReportsOnTestPlan
@OslcDescription("Test Plan that the Test Result reports on.") @OslcName("reportsOnTestPlan") @OslcPropertyDefinition("http://open-services.net/ns/qm#reportsOnTestPlan") @OslcRange("http://open-services.net/ns/qm#TestPlan") @OslcReadOnly(false) @OslcTitle("Reports On Test Plan") public Link getReportsOnTestPlan() -
setReportsOnTestPlan
-
getReportsOnTestCase
@OslcDescription("Test Case that the Test Result reports on.") @OslcOccurs(ExactlyOne) @OslcName("reportsOnTestCase") @OslcPropertyDefinition("http://open-services.net/ns/qm#reportsOnTestCase") @OslcRange("http://open-services.net/ns/qm#TestCase") @OslcReadOnly(false) @OslcTitle("Reports On Test Case") public Link getReportsOnTestCase() -
setReportsOnTestCase
-
getExecutesTestScript
@OslcDescription("Test Script executed to produce the Test Result.") @OslcPropertyDefinition("http://open-services.net/ns/qm#executesTestScript") @OslcRange("http://open-services.net/ns/qm#TestScript") @OslcTitle("Executes Test Script") public Link getExecutesTestScript() -
setExecutesTestScript
-
getProducedByTestExecutionRecord
@OslcDescription("Test Execution Record that the Test Result was produced by.") @OslcName("producedByTestExecutionRecord") @OslcPropertyDefinition("http://open-services.net/ns/qm#producedByTestExecutionRecord") @OslcRange("http://open-services.net/ns/qm#TestExecutionRecord") @OslcReadOnly(false) @OslcTitle("Produced By Test Execution Record") public Link getProducedByTestExecutionRecord() -
setProducedByTestExecutionRecord
-
getRunsOnTestEnvironment
@OslcDescription("Configuration associated with the execution work item executed to generate the execution result.") @OslcPropertyDefinition("http://open-services.net/ns/qm#runsOnTestEnvironment") @OslcRange("http://open-services.net/ns/qm#TestExecutionRecord") @OslcReadOnly(false) @OslcTitle("Runs On Test Environment") public Link getRunsOnTestEnvironment()Gets the running environment.- Returns:
- the running environment.
- Since:
- 3.9.0
-
setRunsOnTestEnvironment
Sets the running environment.- Parameters:
runsOnTestEnvironment- the running environment.- Since:
- 3.9.0
-