We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When trying to generate random record, it seems that EasyRandomParameters are not used for generation. Example:
import org.jeasy.random.EasyRandom; import org.jeasy.random.EasyRandomParameters; import org.jeasy.random.randomizers.text.StringRandomizer; import org.junit.jupiter.api.Test; import static org.jeasy.random.FieldPredicates.named; import static org.junit.jupiter.api.Assertions.assertEquals; public class TestParameters { private final EasyRandom easyRandom = new EasyRandom(new EasyRandomParameters() .randomize(named("name"), new StringRandomizer(1)) ); @Test void test() { var result = easyRandom.nextObject(TestRecord.class); assertEquals(1, result.name().length()); } record TestRecord( String name, String phone ){} }
Result:
Expected :1 Actual :23
The text was updated successfully, but these errors were encountered:
Bug fixes
0888d79
Fixed #28 and improved depth check and code refactoring.
0a97050
7ee0309
Bug fixes (#30)
c3de7f6
dvgaba
Successfully merging a pull request may close this issue.
When trying to generate random record, it seems that EasyRandomParameters are not used for generation.
Example:
Result:
The text was updated successfully, but these errors were encountered: