Search in sources :

Example 1 with SharedEntity

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());
}
Also used : Dashboard(com.epam.ta.reportportal.entity.dashboard.Dashboard) SharedEntity(com.epam.ta.reportportal.ws.model.SharedEntity) Test(org.junit.jupiter.api.Test)

Aggregations

Dashboard (com.epam.ta.reportportal.entity.dashboard.Dashboard)1 SharedEntity (com.epam.ta.reportportal.ws.model.SharedEntity)1 Test (org.junit.jupiter.api.Test)1