use of com.unboundid.ldif.LDIFDeleteChangeRecord in project ldapsdk by pingidentity.
the class DebugTestCase method testDebugLDIFWrite4EnabledOnlyLDIF.
/**
* Tests the fourth {@code debugLDIFWrite} method with the debugger enabled
* and a debug type set that includes only the LDIF type.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test()
public void testDebugLDIFWrite4EnabledOnlyLDIF() throws Exception {
Debug.setEnabled(true, EnumSet.of(DebugType.LDIF));
testLogHandler.resetMessageCount();
assertTrue(Debug.debugEnabled(DebugType.LDIF));
Debug.debugLDIFWrite(Level.FINEST, new LDIFDeleteChangeRecord("dc=example,dc=com"));
assertTrue(testLogHandler.getMessageCount() >= 1);
}
use of com.unboundid.ldif.LDIFDeleteChangeRecord in project ldapsdk by pingidentity.
the class DebugTestCase method testDebugLDIFWrite2EnabledIncludeLDIF.
/**
* Tests the second {@code debugLDIFWrite} method with the debugger enabled
* and a debug type set that includes the LDIF type among others.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test()
public void testDebugLDIFWrite2EnabledIncludeLDIF() throws Exception {
Debug.setEnabled(true, EnumSet.of(DebugType.LDIF, DebugType.OTHER));
testLogHandler.resetMessageCount();
assertTrue(Debug.debugEnabled(DebugType.LDIF));
Debug.debugLDIFWrite(new LDIFDeleteChangeRecord("dc=example,dc=com"));
assertTrue(testLogHandler.getMessageCount() >= 1);
}
use of com.unboundid.ldif.LDIFDeleteChangeRecord in project ldapsdk by pingidentity.
the class DebugTestCase method testDebugLDIFRead4EnabledWithoutLDIF.
/**
* Tests the fourth {@code debugLDIFRead} method with the debugger enabled
* and a debug type set that does not include the LDIF type.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test()
public void testDebugLDIFRead4EnabledWithoutLDIF() throws Exception {
Debug.setEnabled(true, EnumSet.of(DebugType.OTHER));
testLogHandler.resetMessageCount();
assertFalse(Debug.debugEnabled(DebugType.LDIF));
Debug.debugLDIFRead(Level.FINEST, new LDIFDeleteChangeRecord("dc=example,dc=com"));
assertTrue(testLogHandler.getMessageCount() >= 0);
}
use of com.unboundid.ldif.LDIFDeleteChangeRecord in project ldapsdk by pingidentity.
the class DebugTestCase method testDebugLDIFWrite2EnabledAll.
/**
* Tests the second {@code debugLDIFWrite} method with the debugger enabled
* and a debug type set of all types.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test()
public void testDebugLDIFWrite2EnabledAll() throws Exception {
Debug.setEnabled(true);
testLogHandler.resetMessageCount();
assertTrue(Debug.debugEnabled(DebugType.LDIF));
Debug.debugLDIFWrite(new LDIFDeleteChangeRecord("dc=example,dc=com"));
assertTrue(testLogHandler.getMessageCount() >= 1);
}
use of com.unboundid.ldif.LDIFDeleteChangeRecord in project ldapsdk by pingidentity.
the class DebugTestCase method testDebugLDIFWrite2EnabledOnlyLDIF.
/**
* Tests the second {@code debugLDIFWrite} method with the debugger enabled
* and a debug type set that includes only the LDIF type.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test()
public void testDebugLDIFWrite2EnabledOnlyLDIF() throws Exception {
Debug.setEnabled(true, EnumSet.of(DebugType.LDIF));
testLogHandler.resetMessageCount();
assertTrue(Debug.debugEnabled(DebugType.LDIF));
Debug.debugLDIFWrite(new LDIFDeleteChangeRecord("dc=example,dc=com"));
assertTrue(testLogHandler.getMessageCount() >= 1);
}
Aggregations