javabean-tester icon indicating copy to clipboard operation
javabean-tester copied to clipboard

additional enhancements

Open jbennett2091 opened this issue 7 years ago • 2 comments

byte, Byte, List, Set, Map and number-of-methods-tested

jbennett2091 avatar Mar 17 '18 18:03 jbennett2091

Added support for beans that return byte (primitive), Byte (object wrapper), Lists, Sets and Maps. This allows for a wider set of beans to be tested.

I also added changed test(..) to return "int" - number of methods that were tested. This allows tests to do: assertEquals(4, JavaBeanTester.test(Bean.class)) and confirm that 4 properties were invoked properly. Primary reason is that if someone in the future adds a new variable to Bean (that's properly testable), they should proactively update the related test to "5" indicating that there is both a code-change and a test-change in support of each other.

jbennett2091 avatar Mar 17 '18 18:03 jbennett2091