use of com.epam.ta.reportportal.entity.project.ProjectInfo in project commons-dao by reportportal.
the class ProjectRepositoryTest method findProjectInfoByFilterWithPagination.
@Test
void findProjectInfoByFilterWithPagination() {
final Page<ProjectInfo> projectInfoPage = projectRepository.findProjectInfoByFilter(new Filter(ProjectInfo.class, Condition.EQUALS, false, "default_personal", CRITERIA_PROJECT_NAME), PageRequest.of(0, 10));
assertEquals(1, projectInfoPage.getTotalElements());
}
use of com.epam.ta.reportportal.entity.project.ProjectInfo in project commons-dao by reportportal.
the class ProjectRepositoryTest method findProjectInfoByFilter.
@Test
void findProjectInfoByFilter() {
final List<ProjectInfo> projectInfos = projectRepository.findProjectInfoByFilter(new Filter(ProjectInfo.class, Condition.GREATER_THAN_OR_EQUALS, false, "1", USERS_QUANTITY));
assertEquals(2, projectInfos.size());
}
Aggregations