sta-szek / pojo-tester

Java testing framework for testing pojo methods. It tests equals, hashCode, toString, getters, setters, constructors and whatever you report in issues ;)
http://www.pojo.pl
GNU Lesser General Public License v3.0
53 stars 26 forks source link

EnumInstantiator contains bug #211

Closed ruudkenter closed 7 years ago

ruudkenter commented 7 years ago

When using a Enum with only item, EnumInstantiator crashes due to lenght being 1:

int random = (new Random()).nextInt(length - 1);

nextInt throws IllegalArgumentException because the integer passed = 0;

sta-szek commented 7 years ago

Duplicates #199 which is already done. Waits for new version, which waits for more bug fixes ;)