use of com.epam.ta.reportportal.entity.widget.content.FlakyCasesTableContent 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();
}
Aggregations