org.squashtest.tm.domain.testcase
Class ActionTestStep

java.lang.Object
  extended by org.squashtest.tm.domain.testcase.TestStep
      extended by org.squashtest.tm.domain.testcase.ActionTestStep
All Implemented Interfaces:
AttachmentHolder, BoundEntity

@Entity
public class ActionTestStep
extends TestStep
implements BoundEntity, AttachmentHolder


Constructor Summary
ActionTestStep()
           
ActionTestStep(String action, String expectedResult)
           
 
Method Summary
 void accept(TestStepVisitor visitor)
           
 void addRequirementVersionCoverage(RequirementVersionCoverage requirementVersionCoverage)
          will simply add the given RequirementVersionCoverage to this requirementVersionCoverages
 ActionTestStep createCopy()
          Should create a transient copy of this TestStep according to business rules.
 List<ExecutionStep> createExecutionSteps(Dataset dataset)
           
 Set<String> findUsedParametersNames()
           
 String getAction()
           
 Set<Attachment> getAllAttachments()
           
 AttachmentList getAttachmentList()
          Should return the container for this object's attachments.
 Long getBoundEntityId()
           
 BindableEntity getBoundEntityType()
           
 String getExpectedResult()
           
 Project getProject()
           
 Set<RequirementVersionCoverage> getRequirementVersionCoverages()
           
 Set<RequirementVersion> getVerifiedRequirementVersions()
           
 void removeRequirementVersionCoverage(RequirementVersionCoverage requirementVersionCoverage)
          Simply remove the RequirementVersionCoverage from this.requirementVersionCoverages.
 void setAction(String action)
           
 void setExpectedResult(String expectedResult)
           
 
Methods inherited from class org.squashtest.tm.domain.testcase.TestStep
getId, getIndex, getLibrary, getTestCase, setTestCase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionTestStep

public ActionTestStep()

ActionTestStep

public ActionTestStep(String action,
                      String expectedResult)
Method Detail

setAction

public void setAction(String action)

getAction

@NotBlank
public String getAction()

setExpectedResult

public void setExpectedResult(String expectedResult)

getExpectedResult

public String getExpectedResult()

createCopy

public ActionTestStep createCopy()
Description copied from class: TestStep
Should create a transient copy of this TestStep according to business rules. Business rules should be described by implementor in a unit test case.

Specified by:
createCopy in class TestStep
Returns:
copy, should never return null.

accept

public void accept(TestStepVisitor visitor)
Specified by:
accept in class TestStep

getAttachmentList

public AttachmentList getAttachmentList()
Description copied from interface: AttachmentHolder
Should return the container for this object's attachments. Should never return null.

Specified by:
getAttachmentList in interface AttachmentHolder
Returns:
the AttachmentList of this object.

createExecutionSteps

public List<ExecutionStep> createExecutionSteps(Dataset dataset)
Specified by:
createExecutionSteps in class TestStep

getAllAttachments

public Set<Attachment> getAllAttachments()

getBoundEntityId

public Long getBoundEntityId()
Specified by:
getBoundEntityId in interface BoundEntity

getBoundEntityType

public BindableEntity getBoundEntityType()
Specified by:
getBoundEntityType in interface BoundEntity

getProject

public Project getProject()
Specified by:
getProject in interface BoundEntity

removeRequirementVersionCoverage

public void removeRequirementVersionCoverage(RequirementVersionCoverage requirementVersionCoverage)
Simply remove the RequirementVersionCoverage from this.requirementVersionCoverages.

Parameters:
requirementVersionCoverage - : the entity to remove from this step's RequirementVersionCoverages list.

getRequirementVersionCoverages

public Set<RequirementVersionCoverage> getRequirementVersionCoverages()
Returns:
an UNMODIFIABLE set of this ActionTestStep's RequirementVersionCoverages.

addRequirementVersionCoverage

public void addRequirementVersionCoverage(RequirementVersionCoverage requirementVersionCoverage)
will simply add the given RequirementVersionCoverage to this requirementVersionCoverages

Parameters:
requirementVersionCoverage -

getVerifiedRequirementVersions

public Set<RequirementVersion> getVerifiedRequirementVersions()
Returns:
UNMODIFIABLE VIEW of verified requirements.

findUsedParametersNames

public Set<String> findUsedParametersNames()


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.