Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added more test for patientService and patientTypeService #1301

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

josephbate
Copy link
Contributor

@josephbate josephbate commented Nov 6, 2024

Pull Requests Requirements

  • The PR title includes a brief description of the work done, including the
    Issue number if applicable.
  • The PR includes a video showing the changes for the work done.
  • The PR title follows conventional commit label standards.
  • The changes confirm to the OpenElis Global x3 Styleguide and design
    documentation.
  • The changes include tests or are validated by existing tests.
  • I have read and agree to the Contributing Guidelines of this project.

Summary

  • added more patientSercvice Tests
  • Created PatientTypeServiceTest class
  • edited the PatientTypeDAOImp.getPatientType() to correctly filter PatientTypes by key string
    Cc. @mozzy11

Screenshots

[Add relevant screenshots here if applicable]

Related Issue

[Add a link to the related issue or mention it here if applicable]

Other

[Add any additional information or notes here]

@@ -97,413 +84,6 @@ public void getData_shouldCopyPropertiesFromDatabase() throws Exception {
Assert.assertEquals(gender, savedPatient.getGender());
}

@Test
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@josephbate , why did you have to delete the existing tests ??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my local repository got corrupted and i didn't noticed it till when i pushed it
but i have restored it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry was on a different branch

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you never got rid of the chanes here

@mozzy11
Copy link
Collaborator

mozzy11 commented Nov 6, 2024

did you run the formatter ??

@josephbate
Copy link
Contributor Author

josephbate commented Nov 6, 2024

did you run the formatter ??

yes i did

@josephbate
Copy link
Contributor Author

i was on the different branch


Assert.assertEquals(gender, savedPatient.getGender());
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you then just discard all changes in this file ??

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!

@@ -224,8 +224,7 @@ public PatientType readPatientType(String idString) {
public List<PatientType> getPatientTypes(String description) throws LIMSRuntimeException {
List<PatientType> list = new Vector<>();
try {
String sql = "from patientType l where upper(l.description) like upper(:param) order by"
+ " upper(l.description)";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also disacrd tis formating change here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont know what exactly you want me to do coz that was a chenge i made in the dao so that it can filter the patienttypes by string it cause before that it wascreating an error
do you want me to revert the changes? @mozzy11

@josephbate
Copy link
Contributor Author

hello @mozzy11 fixed the format issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants