-
Notifications
You must be signed in to change notification settings - Fork 264
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 Unit Test for OrganizationContact #882
base: develop_3x
Are you sure you want to change the base?
Adding Unit Test for OrganizationContact #882
Conversation
@mozzy11 can you review this |
Thanks @sayed4900 . |
I am sorry for this mistake, my confusion stemmed from the fact that I utilized data from the |
@mozzy11 should I close this pull request now? |
Integration tests are designed to test the interaction between different components of a system, including external dependencies such as databases, file systems, APIs, etc. Therefore, when performing integration tests, the object being tested is not isolated from its persistence mechanism. |
@sayed4900 , can you create a subfolder |
…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.
I create |
} | ||
|
||
@Test | ||
public void testOrganizationContactIntegration() { |
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 @sayed4900 for attemtoing this.
For consistence ,
test methods should follow a naming convetion like
MethodName_ExpectedBehavior
ie getOrganization_shouldReturnOrganization
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.
Use a consistent naming convetion ie MethodName_ExpectedBehavior
for the test Methods
Thanks @mozzy11 |
…ming convention MethodName_ExpectedBehavior
Done |
This pull request implements a unit test for the
OrganizationContact
class by verifying its association with thePerson
andOrganization
classes. The test ensures that theOrganizationContact
correctly stores and retrieves information about the associated Person and Organization.