additional enhancements#4
Conversation
|
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 This is pretty old but if you are still around, see hazendaz/javabean-tester and see if any of the effort you had here makes any sense there. The layout is quite different over there as it uses builder pattern which greatly improved how things work and lots of other object types were added over the years along with far more than just getting/setter checking. |
byte, Byte, List, Set, Map and number-of-methods-tested