|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.squashtest.tm.domain.campaign.TestSuite
@Entity public class TestSuite
| Constructor Summary | |
|---|---|
TestSuite()
|
|
| Method Summary | |
|---|---|
void |
accept(NodeVisitor visitor)
|
void |
bindTestPlanItem(IterationTestPlanItem item)
|
void |
bindTestPlanItems(List<IterationTestPlanItem> items)
Binds the test plan items to this test suite |
void |
bindTestPlanItemsById(List<Long> itemIds)
Binds the test plan items to this test suite using their id to retrieve them from the iteration. |
TestSuite |
createCopy()
returns a copy of a test Suite without it's test plan. |
List<IterationTestPlanItem> |
createPastableCopyOfTestPlan()
returns an ordered copy of the test-suite test plan -test plans items that are not linked to a test case are not copied -the copy of a test plan item is done using IterationTestPlanItem.createCopy() |
IterationTestPlanItem |
findFirstExecutableTestPlanItem()
|
IterationTestPlanItem |
findNextExecutableTestPlanItem(long testPlanItemId)
finds next item (that last execution has unexecuted step) or (has no execution and is not test case deleted) can return item linked to test-case with no step |
AttachmentList |
getAttachmentList()
Should return the container for this object's attachments. |
Long |
getBoundEntityId()
|
BindableEntity |
getBoundEntityType()
|
String |
getDescription()
|
IterationTestPlanItem |
getFirstTestPlanItem()
|
Long |
getId()
|
Iteration |
getIteration()
|
String |
getName()
|
Project |
getProject()
|
List<IterationTestPlanItem> |
getTestPlan()
|
boolean |
isFirstExecutableTestPlanItem(long itemId)
Determines if the item is the first of the test plan of the test suite |
boolean |
isLastExecutableTestPlanItem(long itemId)
|
void |
rename(String newName)
|
void |
reorderTestPlan(int newIndex,
List<IterationTestPlanItem> movedItems)
Since the test plan of a TestSuite is merely a view on the backing iteration, we will reorder here the test plan accordingly. |
void |
setDescription(String description)
|
void |
setName(String name)
|
void |
setTestPlan(List<IterationTestPlanItem> testPlan)
|
void |
unBindTestPlan(IterationTestPlanItem item)
|
void |
unBindTestPlan(List<IterationTestPlanItem> items)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestSuite()
| Method Detail |
|---|
public Long getId()
getId in interface Identifiedpublic String getName()
getName in interface Copiablepublic void setName(String name)
setName in interface Copiablepublic void rename(String newName)
public String getDescription()
public void setDescription(String description)
public Iteration getIteration()
public AttachmentList getAttachmentList()
AttachmentHoldernull.
getAttachmentList in interface AttachmentHolderAttachmentList of this object.public IterationTestPlanItem getFirstTestPlanItem()
public void bindTestPlanItems(List<IterationTestPlanItem> items)
items - public void bindTestPlanItem(IterationTestPlanItem item)
public void unBindTestPlan(List<IterationTestPlanItem> items)
public void unBindTestPlan(IterationTestPlanItem item)
public void bindTestPlanItemsById(List<Long> itemIds)
itemIds -
public void reorderTestPlan(int newIndex,
List<IterationTestPlanItem> movedItems)
public List<IterationTestPlanItem> createPastableCopyOfTestPlan()
returns an ordered copy of the test-suite test plan
-test plans items that are not linked to a test case are not copied
-the copy of a test plan item is done using IterationTestPlanItem.createCopy()
public TestSuite createCopy()
returns a copy of a test Suite without it's test plan.
a copy of the test plan can be found at createPastableCopyOfTestPlan()
createCopy in interface Copiablepublic boolean isLastExecutableTestPlanItem(long itemId)
public boolean isFirstExecutableTestPlanItem(long itemId)
public IterationTestPlanItem findNextExecutableTestPlanItem(long testPlanItemId)
testPlanItemId -
TestPlanItemNotExecutableException - if no item is found
IllegalArgumentException - if id does not correspond to an item of the test suitepublic IterationTestPlanItem findFirstExecutableTestPlanItem()
{@link - TestPlanItemNotExecutableException}
{@link - EmptyTestSuiteTestPlanException}public Long getBoundEntityId()
getBoundEntityId in interface BoundEntitypublic BindableEntity getBoundEntityType()
getBoundEntityType in interface BoundEntitypublic Project getProject()
getProject in interface BoundEntitygetProject in interface TreeNodepublic void accept(NodeVisitor visitor)
accept in interface TreeNodepublic List<IterationTestPlanItem> getTestPlan()
public void setTestPlan(List<IterationTestPlanItem> testPlan)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||