Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

additional enhancements #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jbennett2091
Copy link

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

@jbennett2091
Copy link
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.

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.

1 participant