use of org.apache.directory.api.ldap.extras.controls.syncrepl.syncRequest.SyncRequestValueImpl in project directory-ldap-api by apache.
the class ApiLdapExtrasCodecApiOsgiTest method useBundleClasses.
@Override
protected void useBundleClasses() throws Exception {
SynchronizationModeEnum.REFRESH_AND_PERSIST.getValue();
new AdDirSyncImpl().getOid();
new AdShowDeletedImpl().getOid();
new AdPolicyHintsImpl().getOid();
new ChangeNotificationsImpl().getOid();
new PermissiveModifyImpl().getOid();
new PasswordPolicyImpl().getOid();
new PasswordPolicyResponseImpl().getGraceAuthNRemaining();
new SyncDoneValueImpl().getOid();
new SyncRequestValueImpl().getOid();
new SyncStateValueImpl(true).getCookie();
new VirtualListViewRequestImpl().getOid();
new VirtualListViewResponseImpl().getOid();
new PasswordModifyRequestImpl().getUserIdentity();
new PasswordModifyResponseImpl(5).setResponseName("foo");
new WhoAmIRequestImpl();
new WhoAmIResponseImpl().setDn(new Dn("uid=admin,ou=system"));
new StartTlsRequestImpl();
new StartTlsResponseImpl();
new StartTransactionRequestImpl();
new StartTransactionResponseImpl();
}
use of org.apache.directory.api.ldap.extras.controls.syncrepl.syncRequest.SyncRequestValueImpl in project directory-ldap-api by apache.
the class SyncRequestValueControlTest method testEncodeSyncRequestValue.
@Test
public void testEncodeSyncRequestValue() throws Exception {
SyncRequestValue syncRequestValue = new SyncRequestValueImpl();
syncRequestValue.setMode(SynchronizationModeEnum.REFRESH_ONLY);
SyncRequestValueDecorator decorator = new SyncRequestValueDecorator(codec, syncRequestValue);
ByteBuffer buffer = decorator.encode(ByteBuffer.allocate(decorator.computeLength()));
String expected = Strings.dumpBytes(new byte[] { 0x30, 0x03, 0x0A, 0x01, 0x01 });
assertEquals(expected, Strings.dumpBytes(buffer.array()));
}
Aggregations