Search in sources :

Example 1 with StoredProcedureRequest

use of org.apache.directory.api.ldap.extras.extended.storedProcedure.StoredProcedureRequest in project directory-ldap-api by apache.

the class StandaloneLdapCodecServiceTest method testLoadingExtendedOperation.

/**
 * Test an extended operation.
 */
@Test
public void testLoadingExtendedOperation() throws Exception {
    LdapApiService codec = LdapApiServiceFactory.getSingleton();
    StoredProcedureRequest req = new StoredProcedureRequestImpl();
    req.setLanguage("Java");
    req.setProcedure(Strings.getBytesUtf8("bogusProc"));
    assertNotNull(req);
    assertNotNull(codec);
    StoredProcedureRequest decorator = (StoredProcedureRequest) codec.decorate(req);
    assertNotNull(decorator);
}
Also used : StandaloneLdapApiService(org.apache.directory.api.ldap.codec.standalone.StandaloneLdapApiService) StoredProcedureRequest(org.apache.directory.api.ldap.extras.extended.storedProcedure.StoredProcedureRequest) StoredProcedureRequestImpl(org.apache.directory.api.ldap.extras.extended.storedProcedure.StoredProcedureRequestImpl) Test(org.junit.Test)

Aggregations

StandaloneLdapApiService (org.apache.directory.api.ldap.codec.standalone.StandaloneLdapApiService)1 StoredProcedureRequest (org.apache.directory.api.ldap.extras.extended.storedProcedure.StoredProcedureRequest)1 StoredProcedureRequestImpl (org.apache.directory.api.ldap.extras.extended.storedProcedure.StoredProcedureRequestImpl)1 Test (org.junit.Test)1