use of eu.europa.ec.fisheries.ers.service.dto.fareport.details.ContactPersonDetailsDTO in project UVMS-ActivityModule-APP by UnionVMS.
the class ContactPersonMapperTest method testContactPersonDetailsDTOMapper.
@Test
public void testContactPersonDetailsDTOMapper() {
ContactPerson contactPerson = MapperUtil.getContactPerson();
ContactPersonEntity contactPersonEntity = ContactPersonMapper.INSTANCE.mapToContactPersonEntity(contactPerson);
ContactPersonDetailsDTO contactPersonDetailsDTO = ContactPersonMapper.INSTANCE.mapToContactPersonDetailsDTO(contactPersonEntity);
assertEquals(contactPersonEntity.getAlias(), contactPersonDetailsDTO.getAlias());
assertEquals(contactPersonEntity.getFamilyName(), contactPersonDetailsDTO.getFamilyName());
assertEquals(contactPersonEntity.getFamilyNamePrefix(), contactPersonDetailsDTO.getFamilyNamePrefix());
assertEquals(contactPersonEntity.getGender(), contactPersonDetailsDTO.getGender());
assertEquals(contactPersonEntity.getGivenName(), contactPersonDetailsDTO.getGivenName());
assertEquals(contactPersonEntity.getMiddleName(), contactPersonDetailsDTO.getMiddleName());
assertEquals(contactPersonEntity.getNameSuffix(), contactPersonDetailsDTO.getNameSuffix());
assertEquals(contactPersonEntity.getTitle(), contactPersonDetailsDTO.getTitle());
}
Aggregations