@Test public void whenToApiEntityListFromDomainEntityList() { List<CompetitionGroup> domainEntityList = Arrays.asList(DomainEntityTestUtils.fullCompetitionGroup()); List<CompetitionGroupApiEntity> expected = Arrays.asList(ApiEntityTestUtils.fullCompetitionGroup()); List<CompetitionGroupApiEntity> actual = mapper.toApiEntityList(domainEntityList); assertThat(actual).isEqualTo(expected); }
public abstract List<CompetitionGroupApiEntity> toApiEntityList(List<CompetitionGroup> domainEntityList);
CompetitionGroupMapper { public abstract List<CompetitionGroupApiEntity> toApiEntityList(List<CompetitionGroup> domainEntityList); }
CompetitionGroupMapper { public abstract List<CompetitionGroupApiEntity> toApiEntityList(List<CompetitionGroup> domainEntityList);  }
CompetitionGroupMapper { public abstract List<CompetitionGroupApiEntity> toApiEntityList(List<CompetitionGroup> domainEntityList);  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 List<CompetitionGroupApiEntity> toApiEntityList(List<CompetitionGroup> domainEntityList);  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);  }