| | |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC |
| | | */ |
| | | package org.opends.server.core; |
| | | |
| | | import static org.testng.Assert.*; |
| | | |
| | | import java.io.EOFException; |
| | | import java.io.IOException; |
| | | |
| | | import org.opends.server.TestCaseUtils; |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test(groups="slow") |
| | | @Test |
| | | public void testServerWideAnonymousIdleTimeLimit() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test(groups="slow") |
| | | @Test |
| | | public void testServerWideAuthenticatedIdleTimeLimit() |
| | | throws Exception |
| | | { |
| | |
| | | * |
| | | * @throws Exception If an unexpected problem occurs. |
| | | */ |
| | | @Test(groups="slow") |
| | | @Test |
| | | public void testUserSpecificIdleTimeLimit() |
| | | throws Exception |
| | | { |
| | |
| | | ExtendedResponseProtocolOp extendedResponse = conn.readMessage().getExtendedResponseProtocolOp(); |
| | | assertEquals(extendedResponse.getOID(), LDAPConstants.OID_NOTICE_OF_DISCONNECTION); |
| | | |
| | | assertNull(conn.readMessage()); |
| | | try |
| | | { |
| | | fail("Expected the server to close the connection, but read " + conn.readMessage()); |
| | | } |
| | | catch (EOFException expected) |
| | | { |
| | | // The server closed the connection after the notice of disconnection. |
| | | } |
| | | } |
| | | } |