Skip to content

additional enhancements#4

Open
jbennett2091 wants to merge 1 commit into
codebox:masterfrom
jbennett2091:jbennett2091-patch-1
Open

additional enhancements#4
jbennett2091 wants to merge 1 commit into
codebox:masterfrom
jbennett2091:jbennett2091-patch-1

Conversation

@jbennett2091

Copy link
Copy Markdown

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

@jbennett2091

Copy link
Copy Markdown
Author

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.

@hazendaz

hazendaz commented Jun 29, 2025

Copy link
Copy Markdown

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants