use of org.xwiki.security.authorization.SecurityAccessEntry in project xwiki-platform by xwiki.
the class DefaultSecurityCacheTest method mockSecurityAccessEntry.
private SecurityAccessEntry mockSecurityAccessEntry(final SecurityReference ref, final UserSecurityReference user) {
SecurityAccessEntry entry = mock(SecurityAccessEntry.class, "Access for " + user.toString() + " on " + ref.toString());
when(entry.getReference()).thenReturn(ref);
when(entry.getUserReference()).thenReturn(user);
return entry;
}
Aggregations