mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
MNT-16881 Fix typo in unit test.
Due to the lack of ordering in hash sets, this was passing locally but failing on Bamboo with a NPE.
This commit is contained in:
@@ -152,7 +152,7 @@ public class RecordsManagementPermissionPostProcessorUnitTest
|
|||||||
PermissionReference childOne = mock(PermissionReference.class);
|
PermissionReference childOne = mock(PermissionReference.class);
|
||||||
when(childOne.getName()).thenReturn("Not this one");
|
when(childOne.getName()).thenReturn("Not this one");
|
||||||
PermissionReference childTwo = mock(PermissionReference.class);
|
PermissionReference childTwo = mock(PermissionReference.class);
|
||||||
when(childOne.getName()).thenReturn("This is the requested permission");
|
when(childTwo.getName()).thenReturn("This is the requested permission");
|
||||||
PermissionReference childThree = mock(PermissionReference.class);
|
PermissionReference childThree = mock(PermissionReference.class);
|
||||||
when(childThree.getName()).thenReturn("Not this one either");
|
when(childThree.getName()).thenReturn("Not this one either");
|
||||||
when(mockPermissionModel.getGranteePermissions(mockWritePropsPermRef)).thenReturn(Sets.newHashSet(childOne, childTwo, childThree));
|
when(mockPermissionModel.getGranteePermissions(mockWritePropsPermRef)).thenReturn(Sets.newHashSet(childOne, childTwo, childThree));
|
||||||
|
Reference in New Issue
Block a user