org.squashtest.csp.tm.service
Interface TestCaseImportanceManagerService

All Known Implementing Classes:
TestCaseImportanceManagerServiceImpl

@Transactional
public interface TestCaseImportanceManagerService


Method Summary
 void changeImportanceIfCallStepAddedToTestCases(TestCase calledTestCase, TestCase parentTestCase)
           will compute and update the importance of the parent testCase if it's importance is auto
and, if necessary, will update the importance of any test-case calling the parent test-case.
 void changeImportanceIfCallStepRemoved(TestCase calledTestCase, TestCase parentTestCase)
           will compute and update the importance of the parent test case if it's importance is auto
and, if necessary, will update the importance of any test-case calling the parent test-case.
 void changeImportanceIfIsAuto(long testCaseId)
           will compute and update the importance of the testCase if it's importanceAuto == true.
 void changeImportanceIfRelationRemoved(TestCaseImportance reqCritImportance, TestCase testCase)
           will compute and update the importance of the test case and it's parents given the removal of requirements
 void changeImportanceIfRelationsAddedToReq(List<TestCase> testCases, RequirementVersion requirementVersion)
           will compute and update the importance of each test-case of the list
and, for each test-case "TC" of the list, if necessary, will update the importance of any test-case calling the "TC".
 void changeImportanceIfRelationsAddedToTestCase(List<RequirementVersion> requirementVersions, TestCase testCase)
           will compute and update the importance of the test-case if it's importance is auto
and, if necessary, will update the importance of any test-case calling the parameter test-case.
 void changeImportanceIfRelationsRemovedFromReq(List<Long> testCasesIds, long requirementVersionId)
           will compute and update the importance of the test-cases if their importance is auto
and, for each test-case "TC" of the list, if necessary, will update the importance of any test-case calling the "TC".
 void changeImportanceIfRelationsRemovedFromTestCase(List<Long> requirementVersionsIds, long testCaseId)
           will compute and update the importance of the test-case if it's importance is auto
and, if necessary, will update the importance of any test-case calling the parameter test-case.
 void changeImportanceIfRequirementCriticalityChanged(long requirementVersionId, RequirementCriticality oldRequirementCriticality)
           will update the importance of any directly associated test-case if it's importanceAuto = true.
 

Method Detail

changeImportanceIfIsAuto

void changeImportanceIfIsAuto(long testCaseId)

will compute and update the importance of the testCase if it's importanceAuto == true.

Parameters:
testCaseId -

changeImportanceIfRelationsAddedToReq

void changeImportanceIfRelationsAddedToReq(List<TestCase> testCases,
                                           RequirementVersion requirementVersion)

will compute and update the importance of each test-case of the list
and, for each test-case "TC" of the list, if necessary, will update the importance of any test-case calling the "TC".

Parameters:
testCases - list of test-cases added to the requirement
requirementVersion -

changeImportanceIfRelationsAddedToTestCase

void changeImportanceIfRelationsAddedToTestCase(List<RequirementVersion> requirementVersions,
                                                TestCase testCase)

will compute and update the importance of the test-case if it's importance is auto
and, if necessary, will update the importance of any test-case calling the parameter test-case.

Parameters:
requirements - list of requirements added to the test-case
testCase -

changeImportanceIfRelationsRemovedFromReq

void changeImportanceIfRelationsRemovedFromReq(List<Long> testCasesIds,
                                               long requirementVersionId)

will compute and update the importance of the test-cases if their importance is auto
and, for each test-case "TC" of the list, if necessary, will update the importance of any test-case calling the "TC".

Parameters:
testCasesIds -
requirementId -

changeImportanceIfRelationsRemovedFromTestCase

void changeImportanceIfRelationsRemovedFromTestCase(List<Long> requirementVersionsIds,
                                                    long testCaseId)

will compute and update the importance of the test-case if it's importance is auto
and, if necessary, will update the importance of any test-case calling the parameter test-case.

Parameters:
requirementsIds -
testCaseId -

changeImportanceIfRequirementCriticalityChanged

void changeImportanceIfRequirementCriticalityChanged(long requirementVersionId,
                                                     RequirementCriticality oldRequirementCriticality)

will update the importance of any directly associated test-case if it's importanceAuto = true.
takes also care of test-cases calling the directly associated ones.
this method must be called before the modification of criticality

Parameters:
requirementId -
oldRequirementCriticality -

changeImportanceIfCallStepAddedToTestCases

void changeImportanceIfCallStepAddedToTestCases(TestCase calledTestCase,
                                                TestCase parentTestCase)

will compute and update the importance of the parent testCase if it's importance is auto
and, if necessary, will update the importance of any test-case calling the parent test-case.

Parameters:
calledTestCase -
parentTestCase -

changeImportanceIfCallStepRemoved

void changeImportanceIfCallStepRemoved(TestCase calledTestCase,
                                       TestCase parentTestCase)

will compute and update the importance of the parent test case if it's importance is auto
and, if necessary, will update the importance of any test-case calling the parent test-case.

Parameters:
calledTestCase -
parentTestCase -

changeImportanceIfRelationRemoved

void changeImportanceIfRelationRemoved(TestCaseImportance reqCritImportance,
                                       TestCase testCase)

will compute and update the importance of the test case and it's parents given the removal of requirements

Parameters:
reqCritImportance - is the testCaseImportance that is computed out of the list of removed requirements
testCase - the test case where the requirements are removed from


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