Skip to content

Commit

Permalink
Doing some maven formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dkayiwa committed Jan 21, 2014
1 parent edd0339 commit 720f548
Show file tree
Hide file tree
Showing 3 changed files with 1,441 additions and 1,439 deletions.
Expand Up @@ -181,7 +181,7 @@ public interface ProgramWorkflowService extends OpenmrsService {
* @should retire workflows associated with given program
* @should retire states associated with given program
*/
@Deprecated
@Deprecated
@Authorized( { PrivilegeConstants.MANAGE_PROGRAMS })
public Program retireProgram(Program program) throws APIException;

Expand Down
260 changes: 130 additions & 130 deletions api/src/main/java/org/openmrs/api/db/PatientDAO.java
Expand Up @@ -70,53 +70,53 @@ public interface PatientDAO {
* @should escape an asterix character in identifier phrase
* @should get patients with a matching identifier and type
* @should not search on voided patients
*
* @should not match voided patients _ signature no 1
* @should not match voided patient names _ signature no 1
*
* @should get patient by given name _ signature no 1
* @should get patient by middle name _ signature no 1
* @should get patient by family name _ signature no 1
* @should get patient by family2 name _ signature no 1
* @should get patient by whole name _ signature no 1
*
* @should not get patient by non-existing single name _ signature no 1
* @should not get patient by non-existing name parts _ signature no 1
* @should not get patient by mix of existing and non-existing name parts _ signature no 1
* @should not get patient by voided name _ signature no 1
*
* @should not get patients by empty name _ signature no 1
* @should not get patients by null name _ signature no 1
*
* @should get patient by short given name _ signature no 1
* @should get patient by short middle name _ signature no 1
* @should get patient by short family name _ signature no 1
* @should get patient by short family2 name _ signature no 1
* @should get patient by whole name made up of short names _ signature no 1
* @should get patients by multiple short name parts _ signature no 1
*
* @should not get patient by non-existing single short name _ signature no 1
* @should not get patient by non-existing short name parts _ signature no 1
* @should not get patient by mix of existing and non-existing short name parts _ signature no 1
* @should not get patient by voided short name _ signature no 1
*
* @should get patients with match mode start _ signature no 1
* @should get patients with match mode anywhere _ signature no 1
* @should not get patients with match mode start _ signature no 1
* @should not get patients with match mode anywhere _ signature no 1
*
* @should get patient by identifier _ signature no 1
* @should not get patient by non-existing identifier _ signature no 1
* @should not get patient by voided identifier _ signature no 1
*
* @should not get patient by empty identifier _ signature no 1
* @should not get patient by null identifier _ signature no 1
*
* @should get patient by searching on names or identifiers and using name value as identifier parameter _ signature no 1
* @should get patient by searching on names or identifiers and using identifier value as name parameter _ signature no 1
*
* @should get one patient by multiple name parts _ signature no 1
*
*
* @should not match voided patients _ signature no 1
* @should not match voided patient names _ signature no 1
*
* @should get patient by given name _ signature no 1
* @should get patient by middle name _ signature no 1
* @should get patient by family name _ signature no 1
* @should get patient by family2 name _ signature no 1
* @should get patient by whole name _ signature no 1
*
* @should not get patient by non-existing single name _ signature no 1
* @should not get patient by non-existing name parts _ signature no 1
* @should not get patient by mix of existing and non-existing name parts _ signature no 1
* @should not get patient by voided name _ signature no 1
*
* @should not get patients by empty name _ signature no 1
* @should not get patients by null name _ signature no 1
*
* @should get patient by short given name _ signature no 1
* @should get patient by short middle name _ signature no 1
* @should get patient by short family name _ signature no 1
* @should get patient by short family2 name _ signature no 1
* @should get patient by whole name made up of short names _ signature no 1
* @should get patients by multiple short name parts _ signature no 1
*
* @should not get patient by non-existing single short name _ signature no 1
* @should not get patient by non-existing short name parts _ signature no 1
* @should not get patient by mix of existing and non-existing short name parts _ signature no 1
* @should not get patient by voided short name _ signature no 1
*
* @should get patients with match mode start _ signature no 1
* @should get patients with match mode anywhere _ signature no 1
* @should not get patients with match mode start _ signature no 1
* @should not get patients with match mode anywhere _ signature no 1
*
* @should get patient by identifier _ signature no 1
* @should not get patient by non-existing identifier _ signature no 1
* @should not get patient by voided identifier _ signature no 1
*
* @should not get patient by empty identifier _ signature no 1
* @should not get patient by null identifier _ signature no 1
*
* @should get patient by searching on names or identifiers and using name value as identifier parameter _ signature no 1
* @should get patient by searching on names or identifiers and using identifier value as name parameter _ signature no 1
*
* @should get one patient by multiple name parts _ signature no 1
*
*/
public List<Patient> getPatients(String name, String identifier, List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly, Integer start, Integer length, boolean searchOnNamesOrIdentifiers)
Expand All @@ -125,66 +125,66 @@ public List<Patient> getPatients(String name, String identifier, List<PatientIde
/**
* @see org.openmrs.api.PatientService#getPatients(String, Integer, Integer)
*
* @should not get patients by empty query _ signature no 2
* @should not get patients by null query _ signature no 2
*
* @should get patient by given name _ signature no 2
* @should get patient by middle name _ signature no 2
* @should get patient by family name _ signature no 2
* @should get patient by family2 name _ signature no 2
* @should get patient by whole name _ signature no 2
*
* @should not get patient by non-existing single name _ signature no 2
* @should not get patient by non-existing name parts _ signature no 2
* @should not get patient by mix of existing and non-existing name parts _ signature no 2
* @should not get patient by voided name _ signature no 2
*
* @should get patient by short given name _ signature no 2
* @should get patient by short middle name _ signature no 2
* @should get patient by short family name _ signature no 2
* @should get patient by short family2 name _ signature no 2
* @should get patient by whole name made up of short names _ signature no 2
* @should get patients by multiple short name parts _ signature no 2
*
* @should not get patient by non-existing single short name _ signature no 2
* @should not get patient by non-existing short name parts _ signature no 2
* @should not get patient by mix of existing and non-existing short name parts _ signature no 2
* @should not get patient by voided short name _ signature no 2
*
* @should get patient by identifier _ signature no 2
* @should not get patient by non-existing identifier _ signature no 2
* @should not get patient by voided identifier _ signature no 2
*
* @should get no patient by non-existing attribute _ signature no 2
* @should get no patient by non-searchable attribute _ signature no 2
* @should get no patient by voided attribute _ signature no 2
* @should get one patient by attribute _ signature no 2
* @should get one patient by random case attribute _ signature no 2
* @should not get patients by searching for non-voided and voided attribute _ signature no 2
* @should get multiple patients by single attribute _ signature no 2
* @should not get patients by multiple attributes _ signature no 2
*
* @should find eleven out of eleven patients _ signature no 2
* @should find the first four out of eleven patients _ signature no 2
* @should find the next four out of eleven patients _ signature no 2
* @should find the remaining three out of eleven patients _ signature no 2
* @should not get patients by empty query _ signature no 2
* @should not get patients by null query _ signature no 2
*
* @should get patient by given name _ signature no 2
* @should get patient by middle name _ signature no 2
* @should get patient by family name _ signature no 2
* @should get patient by family2 name _ signature no 2
* @should get patient by whole name _ signature no 2
*
* @should not get patient by non-existing single name _ signature no 2
* @should not get patient by non-existing name parts _ signature no 2
* @should not get patient by mix of existing and non-existing name parts _ signature no 2
* @should not get patient by voided name _ signature no 2
*
* @should get patient by short given name _ signature no 2
* @should get patient by short middle name _ signature no 2
* @should get patient by short family name _ signature no 2
* @should get patient by short family2 name _ signature no 2
* @should get patient by whole name made up of short names _ signature no 2
* @should get patients by multiple short name parts _ signature no 2
*
* @should not get patient by non-existing single short name _ signature no 2
* @should not get patient by non-existing short name parts _ signature no 2
* @should not get patient by mix of existing and non-existing short name parts _ signature no 2
* @should not get patient by voided short name _ signature no 2
*
* @should get patient by identifier _ signature no 2
* @should not get patient by non-existing identifier _ signature no 2
* @should not get patient by voided identifier _ signature no 2
*
* @should get no patient by non-existing attribute _ signature no 2
* @should get no patient by non-searchable attribute _ signature no 2
* @should get no patient by voided attribute _ signature no 2
* @should get one patient by attribute _ signature no 2
* @should get one patient by random case attribute _ signature no 2
* @should not get patients by searching for non-voided and voided attribute _ signature no 2
* @should get multiple patients by single attribute _ signature no 2
* @should not get patients by multiple attributes _ signature no 2
*
* @should find eleven out of eleven patients _ signature no 2
* @should find the first four out of eleven patients _ signature no 2
* @should find the next four out of eleven patients _ signature no 2
* @should find the remaining three out of eleven patients _ signature no 2
* @should find patients with null as start _ signature no 2
* @should find patients with negative start _ signature no 2
* @should find patients with null as length _ signature no 2
* @should not get patients by zero length _ signature no 2
* @should not get patients by negative length _ signature no 2
* @should find patients with excessive length _ signature no 2
*
* @should return distinct patient list _ signature no 2
* @should not match voided patients _ signature no 2
*
* @should get patients with match mode start _ signature no 2
* @should get patients with match mode anywhere _ signature no 2
* @should not get patients with match mode start _ signature no 2
* @should not get patients with match mode anywhere _ signature no 2
*
*/
* @should find patients with null as start _ signature no 2
* @should find patients with negative start _ signature no 2
* @should find patients with null as length _ signature no 2
* @should not get patients by zero length _ signature no 2
* @should not get patients by negative length _ signature no 2
* @should find patients with excessive length _ signature no 2
*
* @should return distinct patient list _ signature no 2
* @should not match voided patients _ signature no 2
*
* @should get patients with match mode start _ signature no 2
* @should get patients with match mode anywhere _ signature no 2
* @should not get patients with match mode start _ signature no 2
* @should not get patients with match mode anywhere _ signature no 2
*
*/
public List<Patient> getPatients(String query, Integer start, Integer length) throws DAOException;

/**
Expand Down Expand Up @@ -285,36 +285,36 @@ public List<PatientIdentifierType> getPatientIdentifierTypes(String name, String
*
* @deprecated replaced by {@link org.openmrs.api.db.PatientDAO#getCountOfPatients(String)}
*
* @should count zero patients when name and identifier and list of identifier types are empty _ signature no 1
* @should count zero patients when name and identifier and list of identifier types are null _ signature no 1
*
* @should count zero patients for non-matching query _ signature no 1
*
* @should not count voided patients _ signature no 1
* @should count single patient _ signature no 1
* @should count multiple patients _ signature no 1
*
* @should count patients by name _ signature no 1
* @should count patients by identifier _ signature no 1
*/
* @should count zero patients when name and identifier and list of identifier types are empty _ signature no 1
* @should count zero patients when name and identifier and list of identifier types are null _ signature no 1
*
* @should count zero patients for non-matching query _ signature no 1
*
* @should not count voided patients _ signature no 1
* @should count single patient _ signature no 1
* @should count multiple patients _ signature no 1
*
* @should count patients by name _ signature no 1
* @should count patients by identifier _ signature no 1
*/
public Long getCountOfPatients(String name, String identifier, List<PatientIdentifierType> identifierTypes,
boolean matchIdentifierExactly, boolean searchOnNamesOrIdentifiers);

/**
* @see org.openmrs.api.PatientService#getCountOfPatients(String)
*
* @should count zero patients when query is empty _ signature no 2
* @should count zero patients when query is null _ signature no 2
* @should count zero patients for non-matching query _ signature no 2
*
* @should count zero patients when query is empty _ signature no 2
* @should count zero patients when query is null _ signature no 2
* @should count zero patients for non-matching query _ signature no 2
* @should not count voided patients _ signature no 2
* @should count single patient _ signature no 2
* @should count multiple patients _ signature no 2
*
* @should count patients by name _ signature no 2
* @should count patients by identifier _ signature no 2
* @should count patients by searchable attribute _ signature no 2
*/
* @should not count voided patients _ signature no 2
* @should count single patient _ signature no 2
* @should count multiple patients _ signature no 2
*
* @should count patients by name _ signature no 2
* @should count patients by identifier _ signature no 2
* @should count patients by searchable attribute _ signature no 2
*/
public Long getCountOfPatients(String query);

}

0 comments on commit 720f548

Please sign in to comment.