use of org.motechproject.mots.testbuilder.InchargeDataBuilder in project mots by motech-implementations.
the class InchargeRepositoryIntegrationTest method setUp.
/**
* Prepare the test environment.
*/
@Before
public void setUp() {
districtRepository.save(district);
chiefdomRepository.save(chiefdom);
facility = new FacilityDataBuilder().withChiefdom(chiefdom).buildAsNew();
facilityRepository.save(facility);
incharge1 = new InchargeDataBuilder().withFacility(facility).buildAsNew();
inchargeRepository.save(incharge1);
}
Aggregations