use of org.xwiki.notifications.preferences.internal.DefaultTargetableNotificationPreferenceBuilder in project xwiki-platform by xwiki.
the class NotificationPreferenceScriptServiceTest method setUp.
@Before
public void setUp() throws Exception {
notificationPreferenceManager = mocker.getInstance(NotificationPreferenceManager.class);
documentAccessBridge = mocker.getInstance(DocumentAccessBridge.class);
authorizationManager = mocker.getInstance(ContextualAuthorizationManager.class);
targetableNotificationPreferenceBuilderProvider = mock(Provider.class);
when(targetableNotificationPreferenceBuilderProvider.get()).thenReturn(new DefaultTargetableNotificationPreferenceBuilder());
mocker.registerComponent(new DefaultParameterizedType(null, Provider.class, TargetableNotificationPreferenceBuilder.class), targetableNotificationPreferenceBuilderProvider);
}
Aggregations