hazendaz / javabean-tester

JavaBean Tester
http://codebox.org.uk/pages/articles/unit-testing-javabeans
Apache License 2.0
9 stars 5 forks source link

Constructors testing #8

Closed Toilal closed 8 years ago

Toilal commented 8 years ago

Would be usefull and add support for testing of constructor.

Some JavaBean have constructors parameters that match properties, and this should be checked.

hazendaz commented 8 years ago

Merged in SHA: 2f6f143

hazendaz commented 8 years ago

I would like to keep this open in order to add another type of constructor test for a private static util class.

hazendaz commented 8 years ago

Private constructor tests added for utlity classes. This uses stub into builder pattern as "JavabeanTester.builder(XXX.class).testPrivateConstructor()". This isn't a perfect solution but makes it simple to test these private constructors which is otherwise duplicate code over and over :)