use of org.apache.qpid.server.model.GroupProvider in project qpid-broker-j by apache.
the class UserPreferencesTest method setUp.
@Override
public void setUp() throws Exception {
super.setUp();
_configuredObject = mock(ConfiguredObject.class);
_preferenceStore = mock(PreferenceStore.class);
_preferenceTaskExecutor = new CurrentThreadTaskExecutor();
_preferenceTaskExecutor.start();
_userPreferences = new UserPreferencesImpl(_preferenceTaskExecutor, _configuredObject, _preferenceStore, Collections.<Preference>emptyList());
_groupPrincipal = new GroupPrincipal(MYGROUP, (GroupProvider) null);
_owner = new AuthenticatedPrincipal(new UsernamePrincipal(MYUSER, null));
_subject = new Subject(true, Sets.newHashSet(_owner, _groupPrincipal), Collections.emptySet(), Collections.emptySet());
_testId = UUID.randomUUID();
}
Aggregations