Search in sources :

Example 31 with ChildClientEntityAwareDTO

use of gov.ca.cwds.cms.data.access.dto.ChildClientEntityAwareDTO in project api-core by ca-cwds.

the class ClientTestUtil method dto.

public static ChildClientEntityAwareDTO dto(Client client, SchoolOriginHistory... histories) {
    ChildClientEntityAwareDTO dto = new ChildClientEntityAwareDTO();
    dto.setEntity(client);
    dto.getSchoolOriginHistories().addAll(Arrays.asList(histories));
    return dto;
}
Also used : ChildClientEntityAwareDTO(gov.ca.cwds.cms.data.access.dto.ChildClientEntityAwareDTO)

Aggregations

ChildClientEntityAwareDTO (gov.ca.cwds.cms.data.access.dto.ChildClientEntityAwareDTO)31 Client (gov.ca.cwds.data.legacy.cms.entity.Client)21 Test (org.junit.Test)21 DasHistory (gov.ca.cwds.data.legacy.cms.entity.DasHistory)6 SafetyAlert (gov.ca.cwds.data.legacy.cms.entity.SafetyAlert)6 SchoolOriginHistory (gov.ca.cwds.data.legacy.cms.entity.SchoolOriginHistory)6