1414import org .junit .Ignore ;
1515import org .junit .Test ;
1616import org .junit .runner .RunWith ;
17- import org .motechproject .nms .csv .domain .CsvAuditRecord ;
1817import org .motechproject .nms .csv .repository .CsvAuditRecordDataService ;
1918import org .motechproject .nms .kilkari .domain .*;
2019import org .motechproject .nms .kilkari .repository .*;
2120import org .motechproject .nms .kilkari .service .MctsBeneficiaryImportReaderService ;
2221import org .motechproject .nms .kilkari .service .SubscriberService ;
2322import org .motechproject .nms .kilkari .service .SubscriptionService ;
24- import org .motechproject .nms .region .domain .Circle ;
25- import org .motechproject .nms .region .domain .District ;
26- import org .motechproject .nms .region .domain .HealthBlock ;
27- import org .motechproject .nms .region .domain .HealthFacility ;
28- import org .motechproject .nms .region .domain .HealthFacilityType ;
29- import org .motechproject .nms .region .domain .HealthSubFacility ;
30- import org .motechproject .nms .region .domain .State ;
31- import org .motechproject .nms .region .domain .Taluka ;
32- import org .motechproject .nms .region .domain .Village ;
23+ import org .motechproject .nms .region .domain .*;
3324import org .motechproject .nms .region .repository .CircleDataService ;
3425import org .motechproject .nms .region .repository .DistrictDataService ;
3526import org .motechproject .nms .region .repository .LanguageDataService ;
3627import org .motechproject .nms .region .repository .StateDataService ;
37- import org .motechproject .nms .region .service .DistrictService ;
38- import org .motechproject .nms .region .service .HealthBlockService ;
39- import org .motechproject .nms .region .service .HealthFacilityService ;
40- import org .motechproject .nms .region .service .HealthSubFacilityService ;
41- import org .motechproject .nms .region .service .LanguageService ;
42- import org .motechproject .nms .region .service .TalukaService ;
43- import org .motechproject .nms .region .service .VillageService ;
28+ import org .motechproject .nms .region .service .*;
4429import org .motechproject .nms .rejectionhandler .domain .ChildImportRejection ;
4530import org .motechproject .nms .rejectionhandler .domain .MotherImportRejection ;
4631import org .motechproject .nms .rejectionhandler .repository .ChildRejectionDataService ;
4732import org .motechproject .nms .rejectionhandler .repository .MotherRejectionDataService ;
4833import org .motechproject .nms .testing .it .api .utils .RequestBuilder ;
34+ import org .motechproject .nms .testing .it .helperUtils .HelperUtils ;
4935import org .motechproject .nms .testing .it .utils .RegionHelper ;
5036import org .motechproject .nms .testing .it .utils .SubscriptionHelper ;
5137import org .motechproject .nms .testing .service .TestingService ;
7359import java .util .Set ;
7460
7561import static org .junit .Assert .*;
76- import static org .motechproject .nms .testing .it .utils .RegionHelper .createDistrict ;
77- import static org .motechproject .nms .testing .it .utils .RegionHelper .createHealthBlock ;
78- import static org .motechproject .nms .testing .it .utils .RegionHelper .createHealthFacility ;
79- import static org .motechproject .nms .testing .it .utils .RegionHelper .createHealthFacilityType ;
80- import static org .motechproject .nms .testing .it .utils .RegionHelper .createHealthSubFacility ;
81- import static org .motechproject .nms .testing .it .utils .RegionHelper .createState ;
82- import static org .motechproject .nms .testing .it .utils .RegionHelper .createTaluka ;
83- import static org .motechproject .nms .testing .it .utils .RegionHelper .createVillage ;
62+ import static org .motechproject .nms .testing .it .utils .RegionHelper .*;
8463
8564@ RunWith (PaxExam .class )
8665@ ExamReactorStrategy (PerSuite .class )
@@ -1642,7 +1621,7 @@ public void testForSubscriberAbsent() throws Exception {
16421621 status = transactionManager .getTransaction (new DefaultTransactionDefinition ());
16431622 subscriber = subscriberService .getSubscriber (9439986187L );
16441623 assertTrue (subscriber .isEmpty ());
1645- List <MctsMother > mothers = mctsMotherDataService . retrieveAll ( );
1624+ List <MctsMother > mothers = HelperUtils . retrieveAllMothers ( mctsMotherDataService );
16461625 assertEquals (1 ,mothers .size ());
16471626
16481627 transactionManager .commit (status );
@@ -1665,6 +1644,8 @@ public void testForSubscriberAbsent() throws Exception {
16651644 transactionManager .commit (status );
16661645 }
16671646
1647+
1648+
16681649 /* Test SubscriberMsisdnTracker in Mother Import
16691650 * Ignored due to NullPointerException
16701651 */
0 commit comments