Search in sources :

Example 1 with LatestLaunchContent

use of com.epam.ta.reportportal.entity.widget.content.LatestLaunchContent in project service-api by reportportal.

the class FlakyCasesTableContentLoader method loadContent.

private Map<String, ?> loadContent(Launch launch, Filter filter, WidgetOptions widgetOptions, int limit) {
    LatestLaunchContent latestLaunchContent = new LatestLaunchContent(launch);
    List<FlakyCasesTableContent> flakyCasesTableContent = widgetRepository.flakyCasesStatistics(filter, ofNullable(widgetOptions.getOptions().get(INCLUDE_METHODS)).map(v -> BooleanUtils.toBoolean(String.valueOf(v))).orElse(false), limit);
    return CollectionUtils.isEmpty(flakyCasesTableContent) ? emptyMap() : ImmutableMap.<String, Object>builder().put(LATEST_LAUNCH, latestLaunchContent).put(FLAKY, flakyCasesTableContent).build();
}
Also used : LatestLaunchContent(com.epam.ta.reportportal.entity.widget.content.LatestLaunchContent) FlakyCasesTableContent(com.epam.ta.reportportal.entity.widget.content.FlakyCasesTableContent)

Aggregations

FlakyCasesTableContent (com.epam.ta.reportportal.entity.widget.content.FlakyCasesTableContent)1 LatestLaunchContent (com.epam.ta.reportportal.entity.widget.content.LatestLaunchContent)1