Merge pull request #511 from teleivo/validator-tests
Extract a test helper class for testing Validators
teleivo <mrteleivo@gmail.com>
ab372558e50e4b3158c91de09848408710c206bb
Extract a test helper class for testing Validators
* extract a test helper class to reduce duplcation in testing Validators
* arrange ValidatorTests similarly, make Errors, Validator under test
and the valid object a member of the test class to remove boilerplate
in tests
* arrange tests in Arrange, Act, Assert style
* split the null, empty string, whitespace tests into separate tests so
they do not depend on each other