Lines Matching refs:mockServerConfig
41 private SessionServerConfig mockServerConfig;
49 mockServerConfig = mock(SessionServerConfig.class);
60 new MultiServerClusterMonitor(mockSessionService, mockDebug, mockServiceConfig, mockServerConfig);
73 given(mockServerConfig.getServerIDsInLocalSite()).willReturn(CollectionUtils.asSet("01", "02"));
74 given(mockServerConfig.getServerFromID("01")).willReturn("http://openam1.example.com:18080/openam");
75 given(mockServerConfig.getServerFromID("02")).willReturn("http://openam2.example.com:28080/openam");
76 given(mockServerConfig.getServerFromID("03")).willReturn("http://openam.example.com:8080/openam"); // the 'site'
77 given(mockServerConfig.getLocalServerID()).willReturn("01");
78 given(mockServerConfig.getLocalServerSessionServiceURL()).willReturn(new URL("http://openam1.example.com:18080/openam/sessionservice"));
79 given(mockServerConfig.getAllServerIDs()).willReturn(CollectionUtils.asList("02", "01"));
80 given(mockServerConfig.isSite("02")).willReturn(false);
81 given(mockServerConfig.isSite("01")).willReturn(false);
82 given(mockServerConfig.isLocalServer("03")).willReturn(false);
83 given(mockServerConfig.isPrimaryServer("03")).willReturn(true);
87 eq(mockSessionService), eq(mockServerConfig), eq(mockServiceConfig), any(Map.class), any(Map.class)))
99 mockSessionService, mockDebug, mockServiceConfig, mockServerConfig, mockFactory);
119 given(mockServerConfig.getServerIDsInLocalSite()).willReturn(CollectionUtils.asSet("01", "02"));
120 given(mockServerConfig.getServerFromID("01")).willReturn("http://openam1.example.com:18080/openam");
121 given(mockServerConfig.getServerFromID("02")).willReturn("http://openam2.example.com:28080/openam");
122 given(mockServerConfig.getServerFromID("03")).willReturn("http://openam.example.com:8080/openam"); // the 'site'
123 given(mockServerConfig.getLocalServerID()).willReturn("02");
124 given(mockServerConfig.getLocalServerSessionServiceURL()).willReturn(new URL("http://openam2.example.com:28080/openam/sessionservice"));
125 given(mockServerConfig.getAllServerIDs()).willReturn(CollectionUtils.asList("02", "01"));
126 given(mockServerConfig.isSite("02")).willReturn(false);
127 given(mockServerConfig.isSite("01")).willReturn(false);
128 given(mockServerConfig.isLocalServer("03")).willReturn(false);
129 given(mockServerConfig.isPrimaryServer("03")).willReturn(true);
133 eq(mockSessionService), eq(mockServerConfig), eq(mockServiceConfig), any(Map.class), any(Map.class)))
150 mockSessionService, mockDebug, mockServiceConfig, mockServerConfig, mockFactory);