use of org.motechproject.mots.testbuilder.FacilityDataBuilder 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);
}
use of org.motechproject.mots.testbuilder.FacilityDataBuilder in project mots by motech-implementations.
the class InchargeRepositoryIntegrationTest method getNewFacility.
private Facility getNewFacility() {
Facility newFacility = new FacilityDataBuilder().withChiefdom(chiefdom).buildAsNew();
facilityRepository.save(newFacility);
return newFacility;
}
Aggregations