SessionServerConfigTest.java revision 1d407e39b7d8f68d9a2b1e178f35fab037d9835a
public class SessionServerConfigTest extends PowerMockTestCase {
@Test
public void localServerIsPrimaryServerIfNoSiteSetup() throws Exception {
// Given
given(WebtopNaming.getServerID("http", "openam.example.com", "8080", "/openam")).willReturn(primary);
// When
SessionServerConfig config = new SessionServerConfig(mock(Debug.class), mock(SessionServiceURLService.class));
// Then
}
@Test
public void localServerAndPrimaryServerDifferIfSiteSetup() throws Exception {
// Given
given(WebtopNaming.getServerID("http", "openam.example.com", "8080", "/openam")).willReturn(primary);
// When
SessionServerConfig config = new SessionServerConfig(mock(Debug.class), mock(SessionServiceURLService.class));
// Then
}
}