DS-4351 Upgrade spring (boot) & hibernate to newer versions: Fixing issues with the latest master merge & fixing the tests

This commit is contained in:
Kevin Van de Velde
2019-12-10 14:16:54 +01:00
parent 3e74b20d8e
commit 5bf433f71b
25 changed files with 39 additions and 49 deletions

View File

@@ -262,9 +262,6 @@ public class RelationshipServiceImplTest {
.thenReturn(leftTypelist);
when(relationshipService.findByItemAndRelationshipType(context, rightItem, testRel, false))
.thenReturn(rightTypelist);
when(itemService.getMetadata(leftItem, "relationship", "type", null, Item.ANY)).thenReturn(metsList);
when(itemService.getMetadata(rightItem, "relationship", "type", null, Item.ANY)).thenReturn(metsList);
when(relationshipDAO.create(any(), any())).thenReturn(relationship);
when(relationshipService.find(context,0)).thenReturn(relationship);
// Invoke delete()