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

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

@Entity
public class ExecutionStep
extends Object
implements AttachmentHolder, Bugged, TestStepVisitor


Constructor Summary
protected ExecutionStep()
          Hibernate needs this.
  ExecutionStep(TestStep testStep)
           
 
Method Summary
 String getAction()
           
 List<Bugged> getAllBuggeds()
           
 List<Long> getAllIssueListId()
           
 AttachmentList getAttachmentList()
          Should return the container for this object's attachments.
 String getComment()
           
 String getDefaultDescription()
          used to prefill a bug report
 Execution getExecution()
           
 ExecutionStatus getExecutionStatus()
           
 Integer getExecutionStepOrder()
           
 String getExpectedResult()
           
 Long getId()
           
 IssueList getIssueList()
           
 Long getIssueListId()
           
 String getLastExecutedBy()
           
 Date getLastExecutedOn()
           
 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(TestStep 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()

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 Bugged

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 Bugged
Returns:
the Id of its IssueList

getDefaultDescription

public String getDefaultDescription()
Description copied from interface: Bugged
used to prefill a bug report

Specified by:
getDefaultDescription in interface Bugged
Returns:
a String representing the Description of a bug report.

getProject

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

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

getIssueList

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

getAllIssueListId

public List<Long> getAllIssueListId()
Specified by:
getAllIssueListId in interface Bugged
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.

getAllBuggeds

public List<Bugged> getAllBuggeds()
Specified by:
getAllBuggeds in interface Bugged
Returns:
all the bugged entities to which that one is linked, including itself.

visit

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

visit

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


Copyright © 2010-2012 Squashtest TM, Squashtest.org. All Rights Reserved.