Search in sources :

Example 1 with ContactPersonDetailsDTO

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());
}
Also used : ContactPersonEntity(eu.europa.ec.fisheries.ers.fa.entities.ContactPersonEntity) ContactPersonDetailsDTO(eu.europa.ec.fisheries.ers.service.dto.fareport.details.ContactPersonDetailsDTO) ContactPerson(un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.ContactPerson) Test(org.junit.Test)

Aggregations

ContactPersonEntity (eu.europa.ec.fisheries.ers.fa.entities.ContactPersonEntity)1 ContactPersonDetailsDTO (eu.europa.ec.fisheries.ers.service.dto.fareport.details.ContactPersonDetailsDTO)1 Test (org.junit.Test)1 ContactPerson (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.ContactPerson)1