use of com.unboundid.ldap.sdk.IntermediateResponse in project ldapsdk by pingidentity.
the class DebugTestCase method testDebugLDAPResult7EnabledIncludeLDAP.
/**
* Tests the seventh {@code debugLDAPResult} method with the debugger enabled
* and a debug type set that includes the LDAP type among others.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test()
public void testDebugLDAPResult7EnabledIncludeLDAP() throws Exception {
Debug.setEnabled(true, EnumSet.of(DebugType.LDAP, DebugType.OTHER));
testLogHandler.resetMessageCount();
assertTrue(Debug.debugEnabled(DebugType.LDAP));
Debug.debugLDAPResult(new IntermediateResponse("1.2.3.4", null));
assertTrue(testLogHandler.getMessageCount() >= 1);
}
use of com.unboundid.ldap.sdk.IntermediateResponse in project ldapsdk by pingidentity.
the class DebugTestCase method testDebugLDAPResult7EnabledOnlyLDAP.
/**
* Tests the seventh {@code debugLDAPResult} method with the debugger enabled
* and a debug type set that includes only the LDAP type.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test()
public void testDebugLDAPResult7EnabledOnlyLDAP() throws Exception {
Debug.setEnabled(true, EnumSet.of(DebugType.LDAP));
testLogHandler.resetMessageCount();
assertTrue(Debug.debugEnabled(DebugType.LDAP));
Debug.debugLDAPResult(new IntermediateResponse("1.2.3.4", null));
assertTrue(testLogHandler.getMessageCount() >= 1);
}
use of com.unboundid.ldap.sdk.IntermediateResponse in project ldapsdk by pingidentity.
the class DebugTestCase method testDebugLDAPResult8DisabledAll.
/**
* Tests the eighth {@code debugLDAPResult} method with the debugger disabled
* and a debug type set of all types.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test()
public void testDebugLDAPResult8DisabledAll() throws Exception {
Debug.setEnabled(false);
testLogHandler.resetMessageCount();
assertFalse(Debug.debugEnabled(DebugType.LDAP));
Debug.debugLDAPResult(Level.FINEST, new IntermediateResponse("1.2.3.4", null));
assertTrue(testLogHandler.getMessageCount() >= 0);
}
use of com.unboundid.ldap.sdk.IntermediateResponse in project ldapsdk by pingidentity.
the class DebugTestCase method testDebugLDAPResult8EnabledIncludeLDAP.
/**
* Tests the eighth {@code debugLDAPResult} method with the debugger enabled
* and a debug type set that includes the LDAP type among others.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test()
public void testDebugLDAPResult8EnabledIncludeLDAP() throws Exception {
Debug.setEnabled(true, EnumSet.of(DebugType.LDAP, DebugType.OTHER));
testLogHandler.resetMessageCount();
assertTrue(Debug.debugEnabled(DebugType.LDAP));
Debug.debugLDAPResult(Level.FINEST, new IntermediateResponse("1.2.3.4", null));
assertTrue(testLogHandler.getMessageCount() >= 1);
}
use of com.unboundid.ldap.sdk.IntermediateResponse in project ldapsdk by pingidentity.
the class DebugTestCase method testDebugLDAPResult8EnabledWithoutLDAP.
/**
* Tests the eighth {@code debugLDAPResult} method with the debugger enabled
* and a debug type set that does not include the LDAP type.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test()
public void testDebugLDAPResult8EnabledWithoutLDAP() throws Exception {
Debug.setEnabled(true, EnumSet.of(DebugType.OTHER));
testLogHandler.resetMessageCount();
assertFalse(Debug.debugEnabled(DebugType.LDAP));
Debug.debugLDAPResult(Level.FINEST, new IntermediateResponse("1.2.3.4", null));
assertTrue(testLogHandler.getMessageCount() >= 0);
}
Aggregations