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

Fix unit test case of getEmbeddedInstance method #34

Open
ankit-agrawal11 opened this issue May 18, 2017 · 0 comments
Open

Fix unit test case of getEmbeddedInstance method #34

ankit-agrawal11 opened this issue May 18, 2017 · 0 comments
Labels
bug Something isn't working minor

Comments

@ankit-agrawal11
Copy link
Contributor

Originally reported by: Shivam Pandey (Bitbucket: shivamcausecode, GitHub: shivamcausecode)


When we call getEmbeddedInstance on the object of the domain class, we must verify all fields. In the current test cases that I have written here,
https://bitbucket.org/causecode/nucleus/pull-requests/40/add-embedded-user-class/diff#Lsrc/test/groovy/com/causecode/user/UserSpec.groovyT96
I am checking for some of the fields only in then block.If one or more fields which are not added in then block get deleted or not initialized properly in the domain class, this will have no effect in the unit test but the unit test should be failed.
This issue is created to add all such left embedded fields while checking in then block.


@ankit-agrawal11 ankit-agrawal11 added minor bug Something isn't working labels Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working minor
Projects
None yet
Development

No branches or pull requests

1 participant