use of com.epam.ta.reportportal.ws.model.SharedEntity in project service-api by reportportal.
the class DashboardConverterTest method toSharedEntity.
@Test
void toSharedEntity() {
final Dashboard dashboard = getDashboard();
final SharedEntity sharedEntity = DashboardConverter.TO_SHARED_ENTITY.apply(dashboard);
assertEquals(sharedEntity.getId(), String.valueOf(dashboard.getId()));
assertEquals(sharedEntity.getName(), dashboard.getName());
assertEquals(sharedEntity.getDescription(), dashboard.getDescription());
assertEquals(sharedEntity.getOwner(), dashboard.getOwner());
}
Aggregations