-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed PIT named testForSubscriberAbsent for MCTS And RCH Beneficiary.
- Loading branch information
1 parent
eb27e9b
commit ca0ec47
Showing
5 changed files
with
44 additions
and
30 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
testing/src/test/java/org/motechproject/nms/testing/it/helperUtils/HelperUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.motechproject.nms.testing.it.helperUtils; | ||
|
||
import org.motechproject.mds.query.SqlQueryExecution; | ||
import org.motechproject.nms.kilkari.domain.MctsMother; | ||
import org.motechproject.nms.kilkari.repository.MctsMotherDataService; | ||
|
||
import javax.jdo.Query; | ||
import java.util.List; | ||
|
||
public class HelperUtils { | ||
|
||
|
||
public static List<MctsMother> retrieveAllMothers(MctsMotherDataService mctsMotherDataService){ | ||
|
||
SqlQueryExecution<List<MctsMother>> queryExecution = new SqlQueryExecution<List<MctsMother>>() { | ||
|
||
@Override | ||
public String getSqlQuery() { | ||
return "Select * FROM nms_mcts_mothers"; | ||
} | ||
|
||
@Override | ||
public List<MctsMother> execute(Query query) { | ||
query.setClass(MctsMother.class); | ||
return (List<MctsMother>) query.execute(); | ||
} | ||
}; | ||
return mctsMotherDataService.executeSQLQuery(queryExecution); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters