Add core to build
Issue gh-610
This commit is contained in:
@@ -15,8 +15,7 @@
|
||||
*/
|
||||
package org.springframework.ldap.control;
|
||||
|
||||
import com.sun.jndi.ldap.ctl.PagedResultsControl;
|
||||
|
||||
import javax.naming.ldap.PagedResultsControl;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
|
||||
@@ -37,7 +37,7 @@ public class PagedResultsDirContextProcessorTest {
|
||||
|
||||
private LdapContext ldapContextMock;
|
||||
|
||||
private PagedResultsDirContextProcessor tested;
|
||||
private PagedResultsDirContextProcessor tested;
|
||||
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
@@ -101,7 +101,7 @@ public class PagedResultsDirContextProcessorTest {
|
||||
byte[] value = new byte[1];
|
||||
value[0] = pageSize;
|
||||
byte[] cookie = encodeDirSyncValue(resultSize, value);
|
||||
|
||||
|
||||
// Using another response control to verify that it is ignored
|
||||
DirSyncResponseControl control = new DirSyncResponseControl(
|
||||
"dummy", true, cookie);
|
||||
@@ -132,7 +132,7 @@ public class PagedResultsDirContextProcessorTest {
|
||||
value[0] = 8;
|
||||
int pageSize = 20;
|
||||
byte[] cookie = encodeValue(pageSize, value);
|
||||
|
||||
|
||||
BerDecoder ber = new BerDecoder(cookie, 0, cookie.length);
|
||||
|
||||
ber.parseSeq(null);
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*/
|
||||
package org.springframework.ldap.control;
|
||||
|
||||
import com.sun.jndi.ldap.ctl.SortControl;
|
||||
import javax.naming.ldap.SortControl;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -34,14 +34,14 @@ import static org.mockito.Mockito.when;
|
||||
|
||||
/**
|
||||
* Unit tests for the SortControlDirContextProcessor class.
|
||||
*
|
||||
*
|
||||
* @author Ulrik Sandberg
|
||||
*/
|
||||
public class SortControlDirContextProcessorTest {
|
||||
|
||||
private LdapContext ldapContextMock;
|
||||
|
||||
private SortControlDirContextProcessor tested;
|
||||
private SortControlDirContextProcessor tested;
|
||||
|
||||
@Before
|
||||
public void setUp() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user