use of com.epam.ta.reportportal.ws.model.dashboard.DashboardResource in project service-api by reportportal.
the class DashboardConverterTest method toResource.
@Test
void toResource() {
final Dashboard dashboard = getDashboard();
final DashboardResource resource = DashboardConverter.TO_RESOURCE.apply(dashboard);
assertEquals(resource.getDashboardId(), dashboard.getId());
assertEquals(resource.getName(), dashboard.getName());
assertEquals(resource.getDescription(), dashboard.getDescription());
assertEquals(resource.getOwner(), dashboard.getOwner());
assertEquals(resource.isShare(), dashboard.isShared());
assertEquals(resource.getWidgets().size(), dashboard.getDashboardWidgets().size());
}
Aggregations