-
Notifications
You must be signed in to change notification settings - Fork 232
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
Custom field Randomizer is not picked up when using randomListOf #254
Comments
Hi @raspacorp,
You can use I hope this helps. Cheers, Edit: By the way you should update to random-beans 3.6.0 😉 |
My bad, I overlooked the static nature of those methods, thanks for the input. Will update to 3.6.0 as well, thanks. |
I am trying to use a custom Randomizer when generating a List of objects, the randomizer will generate consecutive integer values inside the campaignCode field, it works well if I create the objects individually using nextObject method but not when using the bulk generation with randomListOf or randomCollectionOf.
I am using random-beans version: 3.5.0
This is the test:
User.java
RandomBeansTest.java
When running the tests the one that uses nextObject passes but not the one using the randomListOf, the assertion fails as the generator is not creating a valid integer value.
The text was updated successfully, but these errors were encountered: