org.squashtest.tm.service.testcase
Interface CustomTestCaseFinder

All Known Subinterfaces:
CustomTestCaseModificationService, TestCaseFinder, TestCaseModificationService
All Known Implementing Classes:
CustomTestCaseModificationServiceImpl

public interface CustomTestCaseFinder

Author:
Gregory

Method Summary
 List<org.squashtest.tm.domain.testcase.TestCase> findAllByAncestorIds(Collection<Long> ancestorIds)
          Fetches all the test cases which have at least one ancestor from the given list.
 List<org.squashtest.tm.domain.testcase.TestCase> findAllCallingTestCases(long calleeId)
          Fetches all the test cases calling the one matching the given id param.
 org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.testcase.TestCase>> findCallingTestCases(long testCaseId, org.squashtest.tm.core.foundation.collection.PagingAndSorting sorting)
          That method returns the list of test cases having at least one CallTestStep directly calling the test case identified by testCaseId.
 List<org.squashtest.tm.domain.testcase.TestStep> findStepsByTestCaseId(long testCaseId)
           
 org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.testcase.TestStep>> findStepsByTestCaseIdFiltered(long testCaseId, org.squashtest.tm.core.foundation.collection.Paging filter)
           
 org.squashtest.tm.domain.testcase.TestCase findTestCaseFromStep(long testStepId)
           
 org.squashtest.tm.domain.testcase.TestCase findTestCaseWithSteps(long testCaseId)
           
 

Method Detail

findTestCaseWithSteps

org.squashtest.tm.domain.testcase.TestCase findTestCaseWithSteps(long testCaseId)

findStepsByTestCaseId

List<org.squashtest.tm.domain.testcase.TestStep> findStepsByTestCaseId(long testCaseId)

findStepsByTestCaseIdFiltered

org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.testcase.TestStep>> findStepsByTestCaseIdFiltered(long testCaseId,
                                                                                                                                                   org.squashtest.tm.core.foundation.collection.Paging filter)

findCallingTestCases

org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<org.squashtest.tm.domain.testcase.TestCase>> findCallingTestCases(long testCaseId,
                                                                                                                                          org.squashtest.tm.core.foundation.collection.PagingAndSorting sorting)
That method returns the list of test cases having at least one CallTestStep directly calling the test case identified by testCaseId. The list is wrapped in a PagedCollectionHolder, that contains meta informations regarding the filtering, as usual.

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

findAllByAncestorIds

List<org.squashtest.tm.domain.testcase.TestCase> findAllByAncestorIds(@NotNull
                                                                      Collection<Long> ancestorIds)
Fetches all the test cases which have at least one ancestor from the given list. If ancestorID is a folder id, fetches all its descendant test cases. If it is a test cases id, fetches the given test case.

Parameters:
ancestorIds -
Returns:

findAllCallingTestCases

List<org.squashtest.tm.domain.testcase.TestCase> findAllCallingTestCases(long calleeId)
Fetches all the test cases calling the one matching the given id param.

Parameters:
calleeId -
Returns:
all calling test cases

findTestCaseFromStep

org.squashtest.tm.domain.testcase.TestCase findTestCaseFromStep(long testStepId)


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