As a result of my unit and functional testing, I extracted some code.
For the DeepLAuthenticationKey I switched to a factory approach, to make mocking easier.
The IgnoredTermsUtility is also an extracted class which can now be tested with its own unit test.
In DeepLTranslationService, the actual request and request browser creation is extracted into separate methods to improve testability. Moreover, getEntryIdentifier() is converted into a static method.
As a result of my unit and functional testing, I extracted some code.
For the
DeepLAuthenticationKey
I switched to a factory approach, to make mocking easier.The
IgnoredTermsUtility
is also an extracted class which can now be tested with its own unit test.In
DeepLTranslationService
, the actual request and request browser creation is extracted into separate methods to improve testability. Moreover,getEntryIdentifier()
is converted into a static method.