org.squashtest.csp.tm.service
Interface TestCaseFinder

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

public interface TestCaseFinder

Author:
Gregory Fouquet

Method Summary
 org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<VerifiedRequirement>> findAllVerifiedRequirementsByTestCaseId(long testCaseId, org.squashtest.tm.core.foundation.collection.PagingAndSorting pas)
          Deprecated. 
 TestCase findById(long testCaseId)
           
 FilteredCollectionHolder<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.
 List<TestStep> findStepsByTestCaseId(long testCaseId)
           
 FilteredCollectionHolder<List<TestStep>> findStepsByTestCaseIdFiltered(long testCaseId, org.squashtest.tm.core.foundation.collection.Paging filter)
           
 TestCase findTestCaseWithSteps(long testCaseId)
           
 

Method Detail

findById

@Transactional(readOnly=true)
TestCase findById(long testCaseId)

findTestCaseWithSteps

@Transactional(readOnly=true)
TestCase findTestCaseWithSteps(long testCaseId)

findStepsByTestCaseId

@Transactional(readOnly=true)
List<TestStep> findStepsByTestCaseId(long testCaseId)

findStepsByTestCaseIdFiltered

@Transactional(readOnly=true)
FilteredCollectionHolder<List<TestStep>> findStepsByTestCaseIdFiltered(long testCaseId,
                                                                                     org.squashtest.tm.core.foundation.collection.Paging filter)

findAllVerifiedRequirementsByTestCaseId

@Deprecated
@Transactional(readOnly=true)
org.squashtest.tm.core.foundation.collection.PagedCollectionHolder<List<VerifiedRequirement>> findAllVerifiedRequirementsByTestCaseId(long testCaseId,
                                                                                                                                                               org.squashtest.tm.core.foundation.collection.PagingAndSorting pas)
Deprecated. 

Parameters:
testCaseId -
pas -
Returns:

findCallingTestCases

@Transactional(readOnly=true)
FilteredCollectionHolder<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. The list is wrapped in a FilteredCollectionHolder, 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 FilteredCollectionHolder wrapping the list of first-level calling test cases.


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