October 2018
Intermediate to advanced
590 pages
15h 5m
English
We will introduce the dependencies of RegistrationManagement briefly here. At this stage, our focus is to get the RegistrationManagementTests pass. In the tests, we use mocks to define the behavior of the dependencies. So, we will only need to create a blank implementation of the dependencies, leaving the actual implementation for later sections in this chapter.
Here is the blank implementation of the PasswordEncryptor interface:
@Componentpublic class PasswordEncryptorDelegator implements PasswordEncryptor { @Override public String encrypt(String rawPassword) { // TODO implement this return rawPassword; }}
As you can see, we name it PasswordEncryptorDelegator, indicating that the actual password ...
Read now
Unlock full access