org.squashtest.csp.tm.service
Interface CallStepManagerService

All Known Implementing Classes:
CallStepManagerServiceImpl

public interface CallStepManagerService


Method Summary
 void addCallTestStep(long parentTestCaseId, long calledTestCaseId)
          will add a call test step.
 void checkForCyclicStepCallBeforePaste(long destinationTestCaseId, String[] pastedStepsIds)
          Used to check if the destination test case id is found in the calling tree of the pasted steps if so : a CyclicStepCallException is thrown.
 List<TestCase> findCallingTestCases(long testCaseId, CollectionSorting sorting)
          That method returns the list of test cases having at least one CallTestStep directly calling the test case identified by testCaseId.
 TestCase findTestCase(long testCaseId)
           
 Set<Long> getTestCaseCallTree(Long rootTcId)
          given the Id of a test case, will compute the subsequent test case call tree.
 

Method Detail

findTestCase

TestCase findTestCase(long testCaseId)

addCallTestStep

void addCallTestStep(long parentTestCaseId,
                     long calledTestCaseId)
will add a call test step.

Parameters:
parentTestCaseId - that calls a step
calledTestCaseId - being called

getTestCaseCallTree

Set<Long> getTestCaseCallTree(Long rootTcId)
given the Id of a test case, will compute the subsequent test case call tree.

Parameters:
rootTcId. - Null is not legal and unchecked.
Returns:
a set containing the ids of the called test cases, that will not include the calling test case id. Not null, possibly empty.

findCallingTestCases

List<TestCase> findCallingTestCases(long testCaseId,
                                    CollectionSorting sorting)
That method returns the list of test cases having at least one CallTestStep directly calling the test case identified by testCaseId.

Parameters:
testCaseId - the Id of the called test case.
sorting - the sorting parameters.
Returns:
a non null but possibly empty list of test cases calling the argument test case (first level only)

checkForCyclicStepCallBeforePaste

void checkForCyclicStepCallBeforePaste(long destinationTestCaseId,
                                       String[] pastedStepsIds)
Used to check if the destination test case id is found in the calling tree of the pasted steps if so : a CyclicStepCallException is thrown.

Parameters:
testCaseId -
copiedStepId -


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