Search in sources :

Example 1 with InchargeDataBuilder

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);
}
Also used : InchargeDataBuilder(org.motechproject.mots.testbuilder.InchargeDataBuilder) FacilityDataBuilder(org.motechproject.mots.testbuilder.FacilityDataBuilder) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 FacilityDataBuilder (org.motechproject.mots.testbuilder.FacilityDataBuilder)1 InchargeDataBuilder (org.motechproject.mots.testbuilder.InchargeDataBuilder)1