package com.capitalone.dashboard.repository; import com.capitalone.dashboard.model.TestResult; import org.bson.types.ObjectId; import org.springframework.data.querydsl.QueryDslPredicateExecutor; import org.springframework.data.repository.CrudRepository; /** * Repository for {@link TestResult} data. */ public interface TestResultRepository extends CrudRepository<TestResult, ObjectId>, QueryDslPredicateExecutor<TestResult> { /** * Finds the {@link TestResult} with the given execution ID for a specific * {@link com.capitalone.dashboard.model.CollectorItem}. * * @param collectorItemId collector item ID * @param executionId execution ID * @return a TestSuite */ TestResult findByCollectorItemIdAndExecutionId(ObjectId collectorItemId, String executionId); }