use of org.apache.directory.api.ldap.extras.extended.ads_impl.startTls.StartTlsRequestDecorator in project directory-ldap-api by apache.
the class ApiLdapExtrasCodecOsgiTest method useBundleClasses.
@Override
protected void useBundleClasses() throws Exception {
CodecControl<? extends Control> control = ldapApiService.newControl(PasswordPolicy.OID);
assertNotNull(control);
assertTrue(control instanceof PasswordPolicyDecorator);
ExtendedRequest extendedRequest = ldapApiService.newExtendedRequest(StartTlsRequest.EXTENSION_OID, null);
assertNotNull(extendedRequest);
assertTrue(extendedRequest instanceof StartTlsRequestDecorator);
}
Aggregations