-
Notifications
You must be signed in to change notification settings - Fork 37
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
Replace jPopulator with Easy Random #50
Replace jPopulator with Easy Random #50
Conversation
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! The changes LGTM other than the test failure.
Hi, Indeed, the Nevertheless, while working on this PR, I noticed a change in behaviour between jPopulator and Random Beans (which I detailed here). After fixing the issue, Random Beans is able to randomize all classes from the AWS model generated in this project. However, out of the 12575 types, Jackson is not able to deserialize the following 13 types:
Those types are either recursive in structure, or having fields of a particular type that does not provide a default constructor, etc. Each of them makes it impossible to deserialize from Json using jackson. I tested those types one by one and here are some errors I encountered:
If you are ok with excluding these types from the test, I will update the PR accordingly (in addition to upgrading RB to the latest version). Otherwise, I will close this PR and let you continue with jPopulator. WDYT? Best regards, |
Most of those aren't a big concern, the only ones that I would be a bit worried about are the EC2 objects. For the ones I looked at the problem was missing fields due to having deprecated getter/setter that would have a subset of information. I put in a patch to ignore the deprecated getter methods (#55) and tested with the current master of random beans. The EC2 objects worked fine at that point. Some of the others still fail, but that should be fine. It does look like we would need a 3.9 release with some of the recent changes to make it work though. |
Thank you for your feedback! I will cut a release soon and update the PR accordingly. FYI, I recently decided that v3.9 will be the last version in the 3.x line (which will be EOL), so I will update the PR with v4 (also to be released soon, probably the same day as v3.9). It would be wiser to update you with a maintained version rather than an EOLed one. I'll keep you posted. Thank you! |
Hi @brharrington , I released v4 and updated the PR accordingly. With your patch in #55 , the deserialization error for the You will see that I excluded a couple of fields/types that do not provide a default constructor, which makes the deserialization with jackson to fail, but as you mentioned, that should be fine. Please let me know if the changes are ok now or if the PR needs to be updated. Best regards, |
@brharrington Thank you for accepting the PR. I'm glad to see Best regards, |
Hi,
I'm the author of jPopulator (and its successor Easy Random). This PR replaces the outdated jPopulator with Easy Random.
Please let me know if you need any support in using the library, I would love to help!
Best regards,
Mahmoud