Skip to content
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

Generate all setters with random value #82

Open
djechelon opened this issue Sep 5, 2022 · 1 comment
Open

Generate all setters with random value #82

djechelon opened this issue Sep 5, 2022 · 1 comment

Comments

@djechelon
Copy link

As per the title.

In unit testing, it would be awesome to generate setters with assigned random values. Of course, this can be achieved only for normally "primitive" types such as Strings and numerics.

Background: all of my programmers are lazy at doing JUnit tests, they are only asserting the not-nulliness of output objects and only aim at achieving code coverage because they are required.

@gejun123456
Copy link
Owner

next version will support generate by template. you can configure template with xxx.set.(RandomUtils.getRandomString())

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

No branches or pull requests

2 participants