@Test public void whenToDomainAddPayloadFromApiAddRequest() { AddCompetitionGroupRequest apiAddRequest = ApiRequestTestUtils.fullAddCompetitionGroup(); CompetitionGroupAddPayload expected = DomainPayloadTestUtils.fullCompetitionGroupAdd(); CompetitionGroupAddPayload actual = mapper.toDomainAddPayload(apiAddRequest); assertThat(actual).isEqualTo(expected); }
public abstract CompetitionGroupAddPayload toDomainAddPayload(AddCompetitionGroupRequest apiAddRequest);
CompetitionGroupMapper { public abstract CompetitionGroupAddPayload toDomainAddPayload(AddCompetitionGroupRequest apiAddRequest); }
CompetitionGroupMapper { public abstract CompetitionGroupAddPayload toDomainAddPayload(AddCompetitionGroupRequest apiAddRequest);  }
CompetitionGroupMapper { public abstract CompetitionGroupAddPayload toDomainAddPayload(AddCompetitionGroupRequest apiAddRequest);  abstract CompetitionGroupAddPayload toDomainAddPayload(AddCompetitionGroupRequest apiAddRequest); abstract CompetitionGroupApiEntity toApiEntity(CompetitionGroup domainEntity); abstract List<CompetitionGroupApiEntity> toApiEntityList(List<CompetitionGroup> domainEntityList); abstract CompetitionGroupHibernateEntity toHibernateEntity(CompetitionGroupAddPayload domainAddPayload); CompetitionGroupHibernateEntity toHibernateEntity(CompetitionGroup domainEntity); abstract void updateHibernateEntity(
            CompetitionGroup domainEntity,
            @MappingTarget CompetitionGroupHibernateEntity hibernateEntity
    ); abstract CompetitionGroup toDomainEntity(CompetitionGroupHibernateEntity hibernateEntity); abstract List<CompetitionGroup> toDomainEntityList(
            List<CompetitionGroupHibernateEntity> hibernateEntityList
    ); void setDao(CompetitionGroupDao dao); }
CompetitionGroupMapper { public abstract CompetitionGroupAddPayload toDomainAddPayload(AddCompetitionGroupRequest apiAddRequest);  abstract CompetitionGroupAddPayload toDomainAddPayload(AddCompetitionGroupRequest apiAddRequest); abstract CompetitionGroupApiEntity toApiEntity(CompetitionGroup domainEntity); abstract List<CompetitionGroupApiEntity> toApiEntityList(List<CompetitionGroup> domainEntityList); abstract CompetitionGroupHibernateEntity toHibernateEntity(CompetitionGroupAddPayload domainAddPayload); CompetitionGroupHibernateEntity toHibernateEntity(CompetitionGroup domainEntity); abstract void updateHibernateEntity(
            CompetitionGroup domainEntity,
            @MappingTarget CompetitionGroupHibernateEntity hibernateEntity
    ); abstract CompetitionGroup toDomainEntity(CompetitionGroupHibernateEntity hibernateEntity); abstract List<CompetitionGroup> toDomainEntityList(
            List<CompetitionGroupHibernateEntity> hibernateEntityList
    ); void setDao(CompetitionGroupDao dao);  }