@Test public void whenToApiEntityFromDomainEntity() { HandicapGroup domainEntity = DomainEntityTestUtils.fullHandicapGroup(); HandicapGroupApiEntity expected = ApiEntityTestUtils.fullHandicapGroup(); HandicapGroupApiEntity actual = mapper.toApiEntity(domainEntity); assertThat(actual).isEqualTo(expected); }
public abstract HandicapGroupApiEntity toApiEntity(HandicapGroup domainEntity);
HandicapGroupMapper { public abstract HandicapGroupApiEntity toApiEntity(HandicapGroup domainEntity); }
HandicapGroupMapper { public abstract HandicapGroupApiEntity toApiEntity(HandicapGroup domainEntity);  }
HandicapGroupMapper { public abstract HandicapGroupApiEntity toApiEntity(HandicapGroup domainEntity);  abstract HandicapGroupAddPayload toDomainAddPayload(AddHandicapGroupRequest apiAddRequest); abstract HandicapGroupApiEntity toApiEntity(HandicapGroup domainEntity); abstract List<HandicapGroupApiEntity> toApiEntityList(List<HandicapGroup> domainEntityList); abstract HandicapGroupHibernateEntity toHibernateEntity(HandicapGroupAddPayload domainAddPayload); HandicapGroupHibernateEntity toHibernateEntity(HandicapGroup domainEntity); abstract void updateHibernateEntity(
            HandicapGroup domainEntity,
            @MappingTarget HandicapGroupHibernateEntity hibernateEntity
    ); abstract HandicapGroup toDomainEntity(HandicapGroupHibernateEntity hibernateEntity); abstract List<HandicapGroup> toDomainEntityList(List<HandicapGroupHibernateEntity> hibernateEntityList); void setDao(HandicapGroupDao dao); }
HandicapGroupMapper { public abstract HandicapGroupApiEntity toApiEntity(HandicapGroup domainEntity);  abstract HandicapGroupAddPayload toDomainAddPayload(AddHandicapGroupRequest apiAddRequest); abstract HandicapGroupApiEntity toApiEntity(HandicapGroup domainEntity); abstract List<HandicapGroupApiEntity> toApiEntityList(List<HandicapGroup> domainEntityList); abstract HandicapGroupHibernateEntity toHibernateEntity(HandicapGroupAddPayload domainAddPayload); HandicapGroupHibernateEntity toHibernateEntity(HandicapGroup domainEntity); abstract void updateHibernateEntity(
            HandicapGroup domainEntity,
            @MappingTarget HandicapGroupHibernateEntity hibernateEntity
    ); abstract HandicapGroup toDomainEntity(HandicapGroupHibernateEntity hibernateEntity); abstract List<HandicapGroup> toDomainEntityList(List<HandicapGroupHibernateEntity> hibernateEntityList); void setDao(HandicapGroupDao dao);  }