Search in sources :

Example 6 with ContactPartyRoleEntity

use of eu.europa.ec.fisheries.ers.fa.entities.ContactPartyRoleEntity in project UVMS-ActivityModule-APP by UnionVMS.

the class ContactPartyMapperTest method testContactPartyMapperNullReturns.

@Test
public void testContactPartyMapperNullReturns() {
    Set<ContactPartyRoleEntity> contactPartyRoles = ContactPartyMapper.INSTANCE.getContactPartyRoles(null, new ContactPartyEntity());
    assertTrue(contactPartyRoles.size() == 0);
    ContactPersonEntity contactPersonEntity = ContactPartyMapper.INSTANCE.getContactPersonEntity(null, new ContactPartyEntity());
    assertNull(contactPersonEntity);
    Set<StructuredAddressEntity> structuredAddressEntity = ContactPartyMapper.INSTANCE.getStructuredAddressEntity(null, new ContactPartyEntity());
    assertTrue(structuredAddressEntity.size() == 0);
}
Also used : ContactPersonEntity(eu.europa.ec.fisheries.ers.fa.entities.ContactPersonEntity) StructuredAddressEntity(eu.europa.ec.fisheries.ers.fa.entities.StructuredAddressEntity) ContactPartyRoleEntity(eu.europa.ec.fisheries.ers.fa.entities.ContactPartyRoleEntity) ContactPartyEntity(eu.europa.ec.fisheries.ers.fa.entities.ContactPartyEntity) Test(org.junit.Test)

Aggregations

ContactPartyRoleEntity (eu.europa.ec.fisheries.ers.fa.entities.ContactPartyRoleEntity)6 ContactPartyEntity (eu.europa.ec.fisheries.ers.fa.entities.ContactPartyEntity)3 HashSet (java.util.HashSet)3 StructuredAddressEntity (eu.europa.ec.fisheries.ers.fa.entities.StructuredAddressEntity)2 Test (org.junit.Test)2 CodeType (un.unece.uncefact.data.standard.unqualifieddatatype._20.CodeType)2 ContactPersonEntity (eu.europa.ec.fisheries.ers.fa.entities.ContactPersonEntity)1 FishingTripEntity (eu.europa.ec.fisheries.ers.fa.entities.FishingTripEntity)1 VesselTransportMeansEntity (eu.europa.ec.fisheries.ers.fa.entities.VesselTransportMeansEntity)1 ArrayList (java.util.ArrayList)1 ContactParty (un.unece.uncefact.data.standard.reusableaggregatebusinessinformationentity._20.ContactParty)1