Skip to content
Permalink
Browse files
A bit of cleanup
  • Loading branch information
elecharny committed Jan 10, 2022
1 parent 5db89d2 commit 7870643a824d598705d378325dee16ff4956c592
Showing 2 changed files with 10 additions and 1 deletion.
@@ -329,7 +329,6 @@ public void setStream( ByteBuffer stream )
@Override
public void rewind()
{

int start = stream.position() - 1 - tlv.getLengthNbBytes();
stream.position( start );
}
@@ -33,6 +33,7 @@
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.text.ParseException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
@@ -43,6 +44,8 @@
import org.apache.directory.api.ldap.model.entry.Value;
import org.apache.directory.api.ldap.model.exception.LdapException;
import org.apache.directory.api.ldap.model.exception.LdapInvalidAttributeValueException;
import org.apache.directory.api.ldap.model.filter.FilterParser;
import org.apache.directory.api.ldap.model.filter.SimpleNode;
import org.apache.directory.api.ldap.model.schema.AttributeType;
import org.apache.directory.api.ldap.model.schema.SchemaManager;
import org.apache.directory.api.ldap.schema.manager.impl.DefaultSchemaManager;
@@ -2125,4 +2128,11 @@ public void testSerializeAttributeBinaryValue() throws LdapException, IOExceptio
assertTrue( dsaSer.contains( password ) );
assertFalse( dsaSer.isHumanReadable() );
}


@Test
public void testFilter() throws ParseException
{
SimpleNode<?> node = ( SimpleNode<?> ) FilterParser.parse( schemaManager, "(uniqueMember=cn=abc*)" );
}
}

0 comments on commit 7870643

Please sign in to comment.