javabean-tester
javabean-tester copied to clipboard
additional enhancements
byte, Byte, List, Set, Map and number-of-methods-tested
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.