Added logic for password validation and related tests.
Note that for UserServiceImplTest tests, I've opted to go with a Nullpointer exception to prove that the password validation works and fails at a later stage. The tests and mocking were getting bit out of scope for this work.
The custom exception maybe bit overkill here but felt kept it clean.
Advice if ok. Thanks.
Closes #449
Added logic for password validation and related tests. Note that for
UserServiceImplTest
tests, I've opted to go with a Nullpointer exception to prove that the password validation works and fails at a later stage. The tests and mocking were getting bit out of scope for this work.The custom exception maybe bit overkill here but felt kept it clean. Advice if ok. Thanks.