SessionServerConfigTest.java revision 6e9ce46f56bfb7663e3af5aa571d51e8f61f0240
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
}
}