-
Notifications
You must be signed in to change notification settings - Fork 22
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
int range not working #48
Comments
Hi @MateuszMysliwiec thanks for the report. I've tried to reproduce this but it works fine for me, so here's a few questions that would help diagnosing it:
Thanks! |
Hi @richkeenan, thank you for response. I am using latest version of JFixture, and looks like I have misunderstood the "Cheat Sheet" guide because I am not using any of those mentioned here:
Here is my workflow:
I am doing it this way:
And that is all, now inside SomeEntity class, I wanted to specify ranges for some variables, using add-notations specified in first post, answering your question, I checked and I am using correct imports, so it must be probably lack of @rule you mentioned, but I still do not understand where shall I put it in my case, thank you again and sorry if I missed something. |
Assuming SomeEntity siteRequirement = fixture.create(SomeEntity.class);
siteRequirement.minNoOfFirstAidersRequiredInTeam = fixture.create().inRange(int.class, 1, 10) If you want to create multiple of these objects but don't want to manually configure all the time, you can use |
Hello, I am trying to specify range to int:
But still, returned int value is not in range 1-10, any help would be appreciated, thank you!
The text was updated successfully, but these errors were encountered: