Skip to content

Fix unit test case of getEmbeddedInstance method #34

Description

@ankit-agrawal11

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.


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingminor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions