Lines Matching defs:ecnc
372 EntryChangeNotificationControl ecnc = null ;
378 ecnc = new EntryChangeNotificationControl(type, changeNumber);
379 assertNotNull(ecnc);
380 assertEquals(OID_ENTRY_CHANGE_NOTIFICATION, ecnc.getOID());
381 assertEquals(changeNumber, ecnc.getChangeNumber());
382 assertEquals(type, ecnc.getChangeType());
383 assertNull(ecnc.getPreviousDN()) ;
384 assertEquals(false, ecnc.isCritical()) ;
385 checkEntryChangeNotificationControlToString(ecnc);
391 ecnc.write(writer);
395 assertEquals(ecnc.getOID(), newEcnc.getOID());
396 assertEquals(ecnc.getChangeNumber(), newEcnc.getChangeNumber());
397 assertEquals(ecnc.getChangeType(), newEcnc.getChangeType());
399 assertEquals(ecnc.isCritical(), newEcnc.isCritical());
413 ecnc = new EntryChangeNotificationControl(type, dn, changeNumber);
414 assertNotNull(ecnc);
415 assertEquals(OID_ENTRY_CHANGE_NOTIFICATION, ecnc.getOID());
416 assertEquals(changeNumber, ecnc.getChangeNumber());
417 assertEquals(type, ecnc.getChangeType());
418 assertEquals(dn, ecnc.getPreviousDN());
419 assertEquals(false, ecnc.isCritical()) ;
420 checkEntryChangeNotificationControlToString(ecnc);
426 ecnc.write(writer);
430 assertEquals(ecnc.getOID(),newEcnc.getOID());
431 assertEquals(ecnc.getChangeNumber(),newEcnc.getChangeNumber());
432 assertEquals(ecnc.getChangeType(),newEcnc.getChangeType());
433 assertEquals(ecnc.getPreviousDN(),newEcnc.getPreviousDN());
434 assertEquals(ecnc.isCritical(),newEcnc.isCritical()) ;
449 ecnc = new EntryChangeNotificationControl(isCritical, type, dn,
451 assertNotNull(ecnc);
452 assertEquals(OID_ENTRY_CHANGE_NOTIFICATION, ecnc.getOID());
453 assertEquals(changeNumber, ecnc.getChangeNumber());
454 assertEquals(type, ecnc.getChangeType());
455 assertEquals(dn, ecnc.getPreviousDN());
456 assertEquals(isCritical, ecnc.isCritical()) ;
457 checkEntryChangeNotificationControlToString(ecnc);
463 ecnc.write(writer);
467 assertEquals(ecnc.getOID(),newEcnc.getOID());
468 assertEquals(ecnc.getChangeNumber(),newEcnc.getChangeNumber());
469 assertEquals(ecnc.getChangeType(),newEcnc.getChangeType());
470 assertEquals(ecnc.getPreviousDN(),newEcnc.getPreviousDN());
471 assertEquals(ecnc.isCritical(),newEcnc.isCritical()) ;
495 private void checkEntryChangeNotificationControlToString(EntryChangeNotificationControl ecnc)
498 "EntryChangeNotificationControl(changeType=" + ecnc.getChangeType();
499 if (ecnc.getPreviousDN() != null)
501 toString = toString + ",previousDN=\"" + ecnc.getPreviousDN() + "\"" ;
503 if (ecnc.getChangeNumber() > 0)
505 toString = toString + ",changeNumber=" + ecnc.getChangeNumber() ;
508 assertEquals(toString, ecnc.toString());