Search in sources :

Example 1 with ProjectInfo

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());
}
Also used : Filter(com.epam.ta.reportportal.commons.querygen.Filter) ProjectInfo(com.epam.ta.reportportal.entity.project.ProjectInfo) BaseTest(com.epam.ta.reportportal.BaseTest) Test(org.junit.jupiter.api.Test)

Example 2 with ProjectInfo

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());
}
Also used : Filter(com.epam.ta.reportportal.commons.querygen.Filter) ProjectInfo(com.epam.ta.reportportal.entity.project.ProjectInfo) BaseTest(com.epam.ta.reportportal.BaseTest) Test(org.junit.jupiter.api.Test)

Aggregations

BaseTest (com.epam.ta.reportportal.BaseTest)2 Filter (com.epam.ta.reportportal.commons.querygen.Filter)2 ProjectInfo (com.epam.ta.reportportal.entity.project.ProjectInfo)2 Test (org.junit.jupiter.api.Test)2