@Service(value="squashtest.tm.service.CallStepManagerService") @Transactional public class CallStepManagerServiceImpl extends Object implements CallStepManagerService, TestCaseCyclicCallChecker
| Constructor and Description |
|---|
CallStepManagerServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCallTestStep(long parentTestCaseId,
long calledTestCaseId)
will add a call test step.
|
void |
addCallTestStep(long parentTestCaseId,
long calledTestCaseId,
int index)
will add a call test step, at the required index
|
void |
addCallTestSteps(long parentTestCaseId,
List<Long> calledTestCaseIds)
Will call a bunch of test cases.
|
void |
checkForCyclicStepCallBeforePaste(long destinationTestCaseId,
List<Long> pastedStepId)
same as
CallStepManagerService.checkForCyclicStepCallBeforePaste(long, String[]) with a more comfortable signature |
void |
checkForCyclicStepCallBeforePaste(Long destinationTestCaseId,
Long calledTestCaseId) |
void |
checkForCyclicStepCallBeforePaste(long destinationTestCaseId,
String[] pastedStepId)
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.
|
void |
checkNoCyclicCall(org.squashtest.tm.domain.testcase.TestCase testCase)
Used to check if the testPlan call tree is not cyclic This method is used
to prevent infinite cycle in case of bugged data.
|
org.squashtest.tm.domain.testcase.TestCase |
findTestCase(long testCaseId) |
void |
setParameterAssignationMode(long callStepId,
org.squashtest.tm.domain.testcase.ParameterAssignationMode mode,
Long datasetId)
Says how the given call step should handle the parameters of the called test case.
|
@PreAuthorize(value="(hasPermission(#parentTestCaseId, \'org.squashtest.tm.domain.testcase.TestCase\' , \'WRITE\') and hasPermission(#calledTestCaseId, \'org.squashtest.tm.domain.testcase.TestCase\' , \'READ\')) or hasRole(\'ROLE_ADMIN\')")
public void addCallTestStep(long parentTestCaseId,
long calledTestCaseId)
CallStepManagerServiceaddCallTestStep in interface CallStepManagerServiceparentTestCaseId - that calls a stepcalledTestCaseId - being called@PreAuthorize(value="hasPermission(#parentTestCaseId, \'org.squashtest.tm.domain.testcase.TestCase\' , \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void addCallTestSteps(long parentTestCaseId,
List<Long> calledTestCaseIds)
CallStepManagerServiceaddCallTestSteps in interface CallStepManagerServicepublic void addCallTestStep(long parentTestCaseId,
long calledTestCaseId,
int index)
CallStepManagerServiceaddCallTestStep in interface CallStepManagerServiceparentTestCaseId - that calls a stepcalledTestCaseId - being calledindex - where call should be inserted@PreAuthorize(value="hasPermission(#testCaseId, \'org.squashtest.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')") public org.squashtest.tm.domain.testcase.TestCase findTestCase(long testCaseId)
findTestCase in interface CallStepManagerService@PreAuthorize(value="hasPermission(#destinationTestCaseId, \'org.squashtest.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')")
public void checkForCyclicStepCallBeforePaste(long destinationTestCaseId,
String[] pastedStepId)
CallStepManagerServicecheckForCyclicStepCallBeforePaste in interface CallStepManagerService@PreAuthorize(value="hasPermission(#destinationTestCaseId, \'org.squashtest.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')")
public void checkForCyclicStepCallBeforePaste(long destinationTestCaseId,
List<Long> pastedStepId)
CallStepManagerServiceCallStepManagerService.checkForCyclicStepCallBeforePaste(long, String[]) with a more comfortable signaturecheckForCyclicStepCallBeforePaste in interface CallStepManagerService@PreAuthorize(value="hasPermission(#destinationTestCaseId, \'org.squashtest.tm.domain.testcase.TestCase\' , \'READ\') or hasRole(\'ROLE_ADMIN\')") public void checkForCyclicStepCallBeforePaste(Long destinationTestCaseId, Long calledTestCaseId)
checkForCyclicStepCallBeforePaste in interface CallStepManagerService@Transactional(readOnly=true)
public void checkNoCyclicCall(org.squashtest.tm.domain.testcase.TestCase testCase)
throws org.squashtest.tm.exception.CyclicStepCallException
TestCaseCyclicCallCheckercheckNoCyclicCall in interface TestCaseCyclicCallCheckerorg.squashtest.tm.exception.CyclicStepCallException@PreAuthorize(value="hasPermission(#callStepId, \'org.squashtest.tm.domain.testcase.CallTestStep\', \'WRITE\') or hasRole(\'ROLE_ADMIN\')")
public void setParameterAssignationMode(long callStepId,
org.squashtest.tm.domain.testcase.ParameterAssignationMode mode,
Long datasetId)
CallStepManagerServicesetParameterAssignationMode in interface CallStepManagerServiceCopyright © 2010–2017 Henix, henix.fr. All rights reserved.