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:
Tom Page
2017-01-24 11:45:39 +00:00
parent 3b6204873b
commit b74b84ab07

View File

@@ -152,7 +152,7 @@ public class RecordsManagementPermissionPostProcessorUnitTest
PermissionReference childOne = mock(PermissionReference.class);
when(childOne.getName()).thenReturn("Not this one");
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);
when(childThree.getName()).thenReturn("Not this one either");
when(mockPermissionModel.getGranteePermissions(mockWritePropsPermRef)).thenReturn(Sets.newHashSet(childOne, childTwo, childThree));