use of com.epam.ta.reportportal.entity.activity.Activity in project commons-dao by reportportal.
the class ActivityRepositoryTest method findByUserLogin.
@Test
void findByUserLogin() {
final List<Activity> activities = repository.findByFilter(new Filter(Activity.class, Condition.EQUALS, false, "superadmin", CRITERIA_USER));
assertNotNull(activities);
assertTrue(!activities.isEmpty());
activities.forEach(it -> assertEquals(1L, (long) it.getUserId()));
}
use of com.epam.ta.reportportal.entity.activity.Activity in project commons-dao by reportportal.
the class ActivityRepositoryTest method findByObjectIdTest.
@Test
void findByObjectIdTest() {
final List<Activity> activities = repository.findByFilter(new Filter(Activity.class, Condition.EQUALS, false, "4", CRITERIA_OBJECT_ID));
assertNotNull(activities);
assertTrue(!activities.isEmpty());
activities.forEach(it -> assertEquals(4L, (long) it.getObjectId()));
}
Aggregations