org.squashtest.csp.tm.domain.execution
Class ExecutionStep

java.lang.Object
  extended by org.squashtest.csp.tm.domain.execution.ExecutionStep
All Implemented Interfaces:
org.squashtest.csp.core.domain.Identified, AttachmentHolder, IssueDetector, HasExecutionStatus, TestStepVisitor

@Entity
public class ExecutionStep
extends Object
implements AttachmentHolder, IssueDetector, TestStepVisitor, org.squashtest.csp.core.domain.Identified, HasExecutionStatus


Constructor Summary
protected ExecutionStep()
          Hibernate needs this.
  ExecutionStep(ActionTestStep testStep)
           
 
Method Summary
 String getAction()
           
 List<Long> getAllIssueListId()
           
 AttachmentList getAttachmentList()
          Should return the container for this object's attachments.
 org.squashtest.csp.core.bugtracker.domain.BugTracker getBugTracker()
           
 CampaignLibrary getCampaignLibrary()
           
 String getComment()
           
 Execution getExecution()
           
 ExecutionStatus getExecutionStatus()
           
 Integer getExecutionStepOrder()
           
 String getExpectedResult()
           
 Long getId()
           
 IssueList getIssueList()
           
 Long getIssueListId()
           
 String getLastExecutedBy()
           
 Date getLastExecutedOn()
           
 Set<ExecutionStatus> getLegalStatusSet()
           
 Project getProject()
          will return the (Squash) project that entity belongs to
 TestStep getReferencedTestStep()
           
 void setAction(String action)
           
 void setComment(String comment)
           
 void setExecutionStatus(ExecutionStatus executionStatus)
           
 void setExpectedResult(String expectedResult)
           
 void setLastExecutedBy(String lastExecutedBy)
           
 void setLastExecutedOn(Date lastExecutedOn)
           
 void visit(ActionTestStep visited)
           
 void visit(CallTestStep visited)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionStep

protected ExecutionStep()
Hibernate needs this.


ExecutionStep

public ExecutionStep(ActionTestStep testStep)
Method Detail

getReferencedTestStep

public TestStep getReferencedTestStep()

getExecution

public Execution getExecution()

getExecutionStepOrder

public Integer getExecutionStepOrder()

getExpectedResult

public String getExpectedResult()

setExpectedResult

public void setExpectedResult(String expectedResult)

getExecutionStatus

public ExecutionStatus getExecutionStatus()
Specified by:
getExecutionStatus in interface HasExecutionStatus

getLegalStatusSet

public Set<ExecutionStatus> getLegalStatusSet()
Specified by:
getLegalStatusSet in interface HasExecutionStatus
Returns:
which ExecutionStatus are available for the implementor : among all ExecutionStatus available not all might be relevant for that entity. The given collection is unmodifiable.

setExecutionStatus

public void setExecutionStatus(ExecutionStatus executionStatus)

getComment

public String getComment()

setComment

public void setComment(String comment)

getLastExecutedBy

public String getLastExecutedBy()

setLastExecutedBy

public void setLastExecutedBy(String lastExecutedBy)

getLastExecutedOn

public Date getLastExecutedOn()

setLastExecutedOn

public void setLastExecutedOn(Date lastExecutedOn)

getId

public Long getId()
Specified by:
getId in interface org.squashtest.csp.core.domain.Identified

setAction

public void setAction(String action)

getAction

public String getAction()

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.

getIssueListId

public Long getIssueListId()
Specified by:
getIssueListId in interface IssueDetector
Returns:
the Id of its IssueList

getCampaignLibrary

public CampaignLibrary getCampaignLibrary()

getProject

public Project getProject()
Description copied from interface: IssueDetector
will return the (Squash) project that entity belongs to

Specified by:
getProject in interface IssueDetector
Returns:
the project of that entity

getIssueList

public IssueList getIssueList()
Specified by:
getIssueList in interface IssueDetector
Returns:
its IssueList

visit

public void visit(ActionTestStep visited)
Specified by:
visit in interface TestStepVisitor

visit

public void visit(CallTestStep visited)
Specified by:
visit in interface TestStepVisitor

getAllIssueListId

public List<Long> getAllIssueListId()
Specified by:
getAllIssueListId in interface IssueDetector
Returns:
the list of ids of its own IssueList and the result of getAllIssueListIds of other Bugged entities to which that Bugged is bound to.

getBugTracker

public org.squashtest.csp.core.bugtracker.domain.BugTracker getBugTracker()
Specified by:
getBugTracker in interface IssueDetector
Returns:
the bugTracker the entity is associated to


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