Skip to content

DEICH-5793 added default bio + testing

Tom Adam requested to merge DEICH-5793-default-tekst-bio into master

I had to do some modifications in order to make VirtuosoJsonAdapter at least somewhat testable. That is the reason for visibility changes on some functions. Had to use Mockito spies to test upsertEditor and createEditor. Tried to keep the scope as small as possible. The component should be refactored one day. Found a lombok bug which caused that the creation date was not set in the editor node (Virtuoso database). That is the reason why Editor::created field was removed. Moved logic to create Editor to DeichmanUser as public static method. Added tests for that too. Started using Junit 5 @Nested & @DisplayName annotations to write more concise, better structured unit tests.

Closes DEICH-5793

Merge request reports