Search in sources :

Example 1 with SyncInfoValueImpl

use of org.apache.directory.api.ldap.extras.intermediate.syncrepl.SyncInfoValueImpl in project directory-ldap-api by apache.

the class StandaloneLdapCodecServiceTest method testLoadingIntermediateResponse.

/**
 * Test an intermediate response.
 */
@Test
public void testLoadingIntermediateResponse() throws Exception {
    LdapApiService codec = LdapApiServiceFactory.getSingleton();
    SyncInfoValue syncInfoValue = new SyncInfoValueImpl();
    syncInfoValue.setCookie(Strings.getBytesUtf8("test"));
    assertNotNull(syncInfoValue);
    assertNotNull(codec);
    Object o = codec.decorate(syncInfoValue);
    SyncInfoValue decorator = (SyncInfoValue) codec.decorate(syncInfoValue);
    assertNotNull(decorator);
}
Also used : StandaloneLdapApiService(org.apache.directory.api.ldap.codec.standalone.StandaloneLdapApiService) SyncInfoValue(org.apache.directory.api.ldap.extras.intermediate.syncrepl.SyncInfoValue) SyncInfoValueImpl(org.apache.directory.api.ldap.extras.intermediate.syncrepl.SyncInfoValueImpl) Test(org.junit.Test)

Aggregations

StandaloneLdapApiService (org.apache.directory.api.ldap.codec.standalone.StandaloneLdapApiService)1 SyncInfoValue (org.apache.directory.api.ldap.extras.intermediate.syncrepl.SyncInfoValue)1 SyncInfoValueImpl (org.apache.directory.api.ldap.extras.intermediate.syncrepl.SyncInfoValueImpl)1 Test (org.junit.Test)1