Searched defs:mockDelegate (Results 1 - 17 of 17) sorted by relevance

/forgerock/openam-v13/openam-core/src/test/java/com/iplanet/dpro/session/
H A DDynamicSessionIDExtensionsTest.java28 private SessionIDExtensions mockDelegate; field in class:DynamicSessionIDExtensionsTest
37 mockDelegate = mock(SessionIDExtensions.class);
39 dynamic = new DynamicSessionIDExtensions(mockQuery, mockDelegate);
58 verify(mockDelegate).getPrimaryID();
/forgerock/openam-v13/openam-core/src/test/java/org/forgerock/openam/idm/
H A DIdCachedServicesDecoratorTest.java35 private IdCachedServices mockDelegate; field in class:IdCachedServicesDecoratorTest
40 mockDelegate = mock(IdCachedServices.class);
41 decorator = new IdCachedServicesDecorator(mockDelegate);
70 interfaceMethod.invoke(verify(mockDelegate), args);
H A DIdServicesDecoratorTest.java35 private IdServices mockDelegate; field in class:IdServicesDecoratorTest
40 mockDelegate = mock(IdServices.class);
41 decorator = new IdServicesDecorator(mockDelegate);
70 interfaceMethod.invoke(verify(mockDelegate), args);
H A DLowerCaseIdCachedServicesDecoratorTest.java42 private IdCachedServices mockDelegate; field in class:LowerCaseIdCachedServicesDecoratorTest
47 mockDelegate = mock(IdCachedServices.class);
48 decorator = new LowerCaseIdCachedServicesDecorator(mockDelegate);
62 given(mockDelegate.getAttributes(TOKEN, ID_TYPE, NAME, attrNames, AM_ORG_NAME, AM_SDK_DN, isString))
75 given(mockDelegate.getAttributes(TOKEN, ID_TYPE, NAME, AM_ORG_NAME, AM_SDK_DN))
H A DLowerCaseIdServicesDecoratorTest.java43 private IdServices mockDelegate; field in class:LowerCaseIdServicesDecoratorTest
48 mockDelegate = mock(IdServices.class);
49 decorator = new LowerCaseIdServicesDecorator(mockDelegate);
63 given(mockDelegate.getAttributes(TOKEN, ID_TYPE, NAME, attrNames, AM_ORG_NAME, AM_SDK_DN, isString))
76 given(mockDelegate.getAttributes(TOKEN, ID_TYPE, NAME, AM_ORG_NAME, AM_SDK_DN))
/forgerock/openam-v13/openam-core/src/test/java/org/forgerock/openam/session/blacklist/
H A DCachingSessionBlacklistTest.java38 private SessionBlacklist mockDelegate; field in class:CachingSessionBlacklistTest
48 testBlacklist = new CachingSessionBlacklist(mockDelegate, CACHE_SIZE, 0, mockClock);
56 given(mockDelegate.isBlacklisted(mockSession)).willReturn(true);
70 given(mockDelegate.isBlacklisted(mockSession)).willReturn(true);
76 verify(mockDelegate).isBlacklisted(mockSession);
82 verifyNoMoreInteractions(mockDelegate);
91 given(mockDelegate.isBlacklisted(mockSession)).willReturn(false);
98 verify(mockDelegate, times(2)).isBlacklisted(mockSession); // Neither call should be cached
H A DBloomFilterSessionBlacklistTest.java40 private SessionBlacklist mockDelegate; field in class:BloomFilterSessionBlacklistTest
56 testBlacklist = new BloomFilterSessionBlacklist(mockDelegate, mockServiceConfig, mockBloomFilter);
63 verify(mockDelegate).subscribe(any(SessionBlacklist.Listener.class));
71 willDoNothing().given(mockDelegate).subscribe(listenerArgumentCaptor.capture());
72 testBlacklist = new BloomFilterSessionBlacklist(mockDelegate, mockServiceConfig, mockBloomFilter);
87 verify(mockDelegate).blacklist(mockSession);
105 verify(mockDelegate, never()).isBlacklisted(any(Session.class));
117 given(mockDelegate.isBlacklisted(mockSession)).willReturn(true);
124 verify(mockDelegate).isBlacklisted(mockSession);
134 mockDelegate
[all...]
/forgerock/openam-v13/openam-core/src/test/java/org/forgerock/openam/sso/providers/stateless/
H A DStatelessAdminRestrictionTest.java36 private SuperUserDelegate mockDelegate; field in class:StatelessAdminRestrictionTest
42 mockDelegate = mock(SuperUserDelegate.class);
44 restriction = new StatelessAdminRestriction(mockDelegate, mockFactory);
89 given(mockDelegate.isSuperUser(anyString())).willReturn(true);
/forgerock/openam/openam-core/src/test/java/com/iplanet/dpro/session/
H A DDynamicSessionIDExtensionsTest.java28 private SessionIDExtensions mockDelegate; field in class:DynamicSessionIDExtensionsTest
37 mockDelegate = mock(SessionIDExtensions.class);
39 dynamic = new DynamicSessionIDExtensions(mockQuery, mockDelegate);
58 verify(mockDelegate).getPrimaryID();
/forgerock/openam/openam-core/src/test/java/org/forgerock/openam/blacklist/
H A DCachingBlacklistTest.java38 private Blacklist<Blacklistable> mockDelegate; field in class:CachingBlacklistTest
48 testBlacklist = new CachingBlacklist<>(mockDelegate, CACHE_SIZE, 0, mockClock);
56 given(mockDelegate.isBlacklisted(mockSession)).willReturn(true);
70 given(mockDelegate.isBlacklisted(mockSession)).willReturn(true);
76 verify(mockDelegate).isBlacklisted(mockSession);
82 verifyNoMoreInteractions(mockDelegate);
91 given(mockDelegate.isBlacklisted(mockSession)).willReturn(false);
98 verify(mockDelegate, times(2)).isBlacklisted(mockSession); // Neither call should be cached
H A DBloomFilterBlacklistTest.java37 private Blacklist<Blacklistable> mockDelegate; field in class:BloomFilterBlacklistTest
50 testBlacklist = new BloomFilterBlacklist<>(mockDelegate, PURGE_DELAY, mockBloomFilter);
55 verify(mockDelegate).subscribe(any(Blacklist.Listener.class));
63 willDoNothing().given(mockDelegate).subscribe(listenerArgumentCaptor.capture());
64 testBlacklist = new BloomFilterBlacklist<>(mockDelegate, PURGE_DELAY, mockBloomFilter);
79 verify(mockDelegate).blacklist(mockSession);
97 verify(mockDelegate, never()).isBlacklisted(any(Session.class));
109 given(mockDelegate.isBlacklisted(mockSession)).willReturn(true);
116 verify(mockDelegate).isBlacklisted(mockSession);
126 mockDelegate
[all...]
/forgerock/openam/openam-core/src/test/java/org/forgerock/openam/idm/
H A DIdCachedServicesDecoratorTest.java35 private IdCachedServices mockDelegate; field in class:IdCachedServicesDecoratorTest
40 mockDelegate = mock(IdCachedServices.class);
41 decorator = new IdCachedServicesDecorator(mockDelegate);
70 interfaceMethod.invoke(verify(mockDelegate), args);
H A DIdServicesDecoratorTest.java35 private IdServices mockDelegate; field in class:IdServicesDecoratorTest
40 mockDelegate = mock(IdServices.class);
41 decorator = new IdServicesDecorator(mockDelegate);
70 interfaceMethod.invoke(verify(mockDelegate), args);
H A DLowerCaseIdCachedServicesDecoratorTest.java42 private IdCachedServices mockDelegate; field in class:LowerCaseIdCachedServicesDecoratorTest
47 mockDelegate = mock(IdCachedServices.class);
48 decorator = new LowerCaseIdCachedServicesDecorator(mockDelegate);
62 given(mockDelegate.getAttributes(TOKEN, ID_TYPE, NAME, attrNames, AM_ORG_NAME, AM_SDK_DN, isString))
75 given(mockDelegate.getAttributes(TOKEN, ID_TYPE, NAME, AM_ORG_NAME, AM_SDK_DN))
H A DLowerCaseIdServicesDecoratorTest.java43 private IdServices mockDelegate; field in class:LowerCaseIdServicesDecoratorTest
48 mockDelegate = mock(IdServices.class);
49 decorator = new LowerCaseIdServicesDecorator(mockDelegate);
63 given(mockDelegate.getAttributes(TOKEN, ID_TYPE, NAME, attrNames, AM_ORG_NAME, AM_SDK_DN, isString))
76 given(mockDelegate.getAttributes(TOKEN, ID_TYPE, NAME, AM_ORG_NAME, AM_SDK_DN))
/forgerock/openam/openam-core/src/test/java/org/forgerock/openam/sso/providers/stateless/
H A DStatelessAdminRestrictionTest.java36 private SuperUserDelegate mockDelegate; field in class:StatelessAdminRestrictionTest
42 mockDelegate = mock(SuperUserDelegate.class);
44 restriction = new StatelessAdminRestriction(mockDelegate, mockFactory);
89 given(mockDelegate.isSuperUser(anyString())).willReturn(true);
/forgerock/openam/openam-push-notification/src/test/java/org/forgerock/openam/services/push/
H A DPushNotificationServiceTest.java38 private PushNotificationDelegate mockDelegate; field in class:PushNotificationServiceTest
59 this.mockDelegate = mock(PushNotificationDelegate.class);
65 pushRealmMap.put("realm", mockDelegate);
88 verify(mockDelegate, times(1)).send(pushMessage);
201 notificationService.new PushNotificationDelegateUpdater().replaceDelegate("oldRealm", mockDelegate, config);
215 notificationService.new PushNotificationDelegateUpdater().replaceDelegate("oldRealm", mockDelegate, config);
220 verify(mockDelegate, times(1)).startServices();

Completed in 54 milliseconds