use of gov.ca.cwds.data.persistence.ns.Person in project API by ca-cwds.
the class PersonDaoIT method testCreate.
@Override
@Test
public void testCreate() {
gov.ca.cwds.data.persistence.ns.Address toCreateAddress = new gov.ca.cwds.data.persistence.ns.Address(1L, "742 Evergreen Terrace", "Springfield", "WA", new Integer(98700), "Home");
Set<PersonAddress> personAddresses = new HashSet<>();
PersonAddress personAddress = new PersonAddress();
personAddress.setAddress(toCreateAddress);
personAddresses.add(personAddress);
Person person = new Person(null, "John", "Doe", "Male", new Date(), "111-11-1111", personAddresses, null, null, null, null);
Person created = personDao.create(person);
assertThat(created, is(person));
}
Aggregations