use of com.epam.ta.reportportal.entity.item.TestItemResults in project service-api by reportportal.
the class PredicatesTest method checkCanBeIndexed.
@Test
void checkCanBeIndexed() {
TestItem testItem = new TestItem();
testItem.setType(TestItemTypeEnum.STEP);
final TestItemResults itemResults = new TestItemResults();
final IssueEntity issueEntity = new IssueEntity();
issueEntity.setIgnoreAnalyzer(false);
final IssueType issueType = new IssueType();
issueType.setIssueGroup(new IssueGroup(TestItemIssueGroup.PRODUCT_BUG));
issueEntity.setIssueType(issueType);
itemResults.setIssue(issueEntity);
testItem.setItemResults(itemResults);
assertTrue(ITEM_CAN_BE_INDEXED.test(testItem), "Item should be available for indexing");
}
use of com.epam.ta.reportportal.entity.item.TestItemResults in project service-api by reportportal.
the class AnalyzerUtilsTest method createTest.
private TestItem createTest() {
TestItem testItem = new TestItem();
testItem.setItemId(1L);
testItem.setStartTime(LocalDateTime.now(ZoneOffset.UTC));
testItem.setUniqueId("uniqueId");
testItem.setItemResults(new TestItemResults());
return testItem;
}
use of com.epam.ta.reportportal.entity.item.TestItemResults in project service-api by reportportal.
the class LogIndexerServiceTest method createTestItem.
private TestItem createTestItem(Long id, TestItemIssueGroup issueGroup) {
TestItem ti = new TestItem();
ti.setItemId(id);
ti.setLaunchId(id);
ti.setItemResults(new TestItemResults());
IssueType issueType = new IssueType();
issueType.setLocator(issueGroup.getLocator());
IssueEntity issueEntity = new IssueEntity();
issueEntity.setIssueType(issueType);
issueEntity.setIgnoreAnalyzer(false);
ti.getItemResults().setIssue(issueEntity);
return ti;
}
use of com.epam.ta.reportportal.entity.item.TestItemResults in project service-api by reportportal.
the class SuggestItemServiceTest method getRelevantItem.
private TestItem getRelevantItem() {
TestItem relevantItem = new TestItem();
relevantItem.setItemId(2L);
TestItemResults relevantItemRes = new TestItemResults();
relevantItemRes.setEndTime(LocalDateTime.now());
relevantItem.setItemResults(relevantItemRes);
return relevantItem;
}
Aggregations