use of com.unboundid.ldif.LDIFDeleteChangeRecord in project ldapsdk by pingidentity.
the class DebugTestCase method testDebugLDIFWrite4EnabledIncludeLDIF.
/**
* Tests the fourth {@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 testDebugLDIFWrite4EnabledIncludeLDIF() throws Exception {
Debug.setEnabled(true, EnumSet.of(DebugType.LDIF, DebugType.OTHER));
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 testDebugLDIFRead2EnabledOnlyLDIF.
/**
* Tests the second {@code debugLDIFRead} 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 testDebugLDIFRead2EnabledOnlyLDIF() throws Exception {
Debug.setEnabled(true, EnumSet.of(DebugType.LDIF));
testLogHandler.resetMessageCount();
assertTrue(Debug.debugEnabled(DebugType.LDIF));
Debug.debugLDIFRead(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 testDebugLDIFRead4EnabledIncludeLDIF.
/**
* Tests the fourth {@code debugLDIFRead} 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 testDebugLDIFRead4EnabledIncludeLDIF() throws Exception {
Debug.setEnabled(true, EnumSet.of(DebugType.LDIF, DebugType.OTHER));
testLogHandler.resetMessageCount();
assertTrue(Debug.debugEnabled(DebugType.LDIF));
Debug.debugLDIFRead(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 testDebugLDIFRead2EnabledAll.
/**
* Tests the second {@code debugLDIFRead} method with the debugger enabled
* and a debug type set of all types.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test()
public void testDebugLDIFRead2EnabledAll() throws Exception {
Debug.setEnabled(true);
testLogHandler.resetMessageCount();
assertTrue(Debug.debugEnabled(DebugType.LDIF));
Debug.debugLDIFRead(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 testDebugLDIFRead4EnabledAll.
/**
* Tests the fourth {@code debugLDIFRead} method with the debugger enabled
* and a debug type set of all types.
*
* @throws Exception If an unexpected problem occurs.
*/
@Test()
public void testDebugLDIFRead4EnabledAll() throws Exception {
Debug.setEnabled(true);
testLogHandler.resetMessageCount();
assertTrue(Debug.debugEnabled(DebugType.LDIF));
Debug.debugLDIFRead(Level.FINEST, new LDIFDeleteChangeRecord("dc=example,dc=com"));
assertTrue(testLogHandler.getMessageCount() >= 1);
}
Aggregations