intellij-generateAllSetMethod icon indicating copy to clipboard operation
intellij-generateAllSetMethod copied to clipboard

Generate all setters with random value

Open djechelon opened this issue 2 years ago • 1 comments

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.

djechelon avatar Sep 05 '22 07:09 djechelon

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

gejun123456 avatar Sep 06 '22 02:09 gejun123456