import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
import eu.etaxonomy.cdm.model.common.MarkerType;
+import eu.etaxonomy.cdm.model.taxon.Taxon;
/**
* DTO for IdentifiableEntities matching a certain marker.
public class CdmEntity{
UUID cdmUuid;
String titleCache;
- T entitys;
+ T entity;
public CdmEntity(UUID cdmUuid, String titleCache, T entity) {
this.cdmUuid = cdmUuid;
this.titleCache = titleCache;
- this.entitys = entity;
+ this.entity = (T)new Taxon();
+
}
public UUID getCdmUuid() {return cdmUuid;}
public String getTitleCache() {return titleCache;}
- public T getEntityX() {return entitys;}
+ public T getEntity() {return entity;}
}
FindByMarkerDTO<Taxon>.Marker marker = dto.getMarker();
Assert.assertTrue("Flag must be true", marker.getFlag());
Assert.assertEquals("Flag must be true", uuidMarkerTypeCompleted, marker.getTypeUuid());
- Assert.assertNotNull("the CDM entity in the dto must not be empty if includeEntity=true", dto.getCdmEntity().getEntityX());
- Assert.assertEquals(5000, dto.getCdmEntity().getEntityX().getId());
+ Assert.assertNotNull("the CDM entity in the dto must not be empty if includeEntity=true", dto.getCdmEntity().getEntity());
+ Assert.assertEquals(5000, dto.getCdmEntity().getEntity().getId());
markerValue = false;
taxonPager = taxonService.findByMarker(Taxon.class, markerType, markerValue, rootNode, false, null, null, null);