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
Adding Integration Tests to Person #916
base: develop
Are you sure you want to change the base?
Conversation
…ntact' into integration-test-organization-contact Merge remote-tracking branch 'origin/integration-test-organization-contact' into integration-test-organization-contact This merge incorporates changes from the remote repository into the local branch to synchronize our work with the latest updates.
@mozzy11 can you review this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're using both Assert class and static assertion methods. for consistency, you need to stick to one style.
@mozzy11 can you see if this is something to take note of though it looks more readable
Also, link to a corresponding issue |
import static org.junit.Assert.assertEquals; | ||
import static org.junit.Assert.assertNotEquals; | ||
import static org.junit.Assert.assertNotNull; | ||
import static org.junit.Assert.assertNull; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we stick to one style for consistency? you are using both Assert class and static assertion methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your review, I will edit it now.
deletedPerson = personService.get(personId); | ||
} catch (ObjectNotFoundException e) { | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're not doing anything with this catch,
catching ObjectNotFoundException
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're not doing anything with this catch, catching
ObjectNotFoundException
can you check my last commit and give me feedback and thanks for your review.
should I open issue? |
…LIS-Global-2 into integration-tests-person
can you configure your IDE with java formatter to properly format your code ?? |
…LIS-Global-2 into integration-tests-person
I am trying to test function can the problem comes from getPersonById Implementation ? |
@mozzy11 I adding more tests, can you review them? |
Yes @sayed4900 but it's always a good practice to open an issue before start working on it. |
Thanks @valens200 |
Hello @mozzy11 When I test this function it's always failed To resolve this issue, I modified the method to accept the personId parameter as a String directly, like so: query.setParameter("personId", personId). |
Thanks @sayed4900 . |
How can I solve the conflicts? |
👋 Hi, @sayed4900, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
Add tests for updating and deleting a person