use of eu.europa.ec.fisheries.ers.fa.entities.FluxLocationEntity in project UVMS-ActivityModule-APP by UnionVMS.
the class BaseActivityViewMapperTest method testGetAreas.
@Test
public void testGetAreas() {
FishingActivityEntity entity = new FishingActivityEntity();
FluxLocationEntity fluxLocationEntity = new FluxLocationEntity();
fluxLocationEntity.setFluxLocationIdentifier("id");
fluxLocationEntity.setFluxLocationIdentifierSchemeId("schemeId");
fluxLocationEntity.setTypeCode("AREA");
entity.setFluxLocations(Collections.set(fluxLocationEntity));
AreaDto areas = BaseActivityViewMapper.getAreas(entity);
Map<String, String> stringMap = new HashMap<>();
stringMap.put("id", "id");
stringMap.put("schemeId", "schemeId");
assertEquals(stringMap, areas.getIdentifiers());
}
Aggregations