|
16 | 16 |
|
17 | 17 | package org.springframework.ldap.core;
|
18 | 18 |
|
19 |
| -import org.hamcrest.BaseMatcher; |
20 |
| -import org.hamcrest.Description; |
| 19 | +import java.util.List; |
| 20 | + |
| 21 | +import javax.naming.Binding; |
| 22 | +import javax.naming.CompositeName; |
| 23 | +import javax.naming.Name; |
| 24 | +import javax.naming.NamingEnumeration; |
| 25 | +import javax.naming.NamingException; |
| 26 | +import javax.naming.directory.BasicAttributes; |
| 27 | +import javax.naming.directory.DirContext; |
| 28 | +import javax.naming.directory.ModificationItem; |
| 29 | +import javax.naming.directory.SearchControls; |
| 30 | +import javax.naming.directory.SearchResult; |
| 31 | +import javax.naming.ldap.LdapContext; |
| 32 | +import javax.naming.ldap.LdapName; |
| 33 | + |
21 | 34 | import org.junit.Before;
|
22 | 35 | import org.junit.Test;
|
23 | 36 | import org.mockito.ArgumentCaptor;
|
24 | 37 | import org.mockito.ArgumentMatcher;
|
25 |
| -import org.mockito.verification.VerificationMode; |
26 | 38 |
|
27 | 39 | import org.springframework.LdapDataEntry;
|
28 | 40 | import org.springframework.dao.EmptyResultDataAccessException;
|
|
38 | 50 | import org.springframework.ldap.query.LdapQueryBuilder;
|
39 | 51 | import org.springframework.ldap.support.LdapUtils;
|
40 | 52 |
|
41 |
| -import javax.naming.Binding; |
42 |
| -import javax.naming.CompositeName; |
43 |
| -import javax.naming.Name; |
44 |
| -import javax.naming.NamingEnumeration; |
45 |
| -import javax.naming.NamingException; |
46 |
| -import javax.naming.directory.BasicAttributes; |
47 |
| -import javax.naming.directory.DirContext; |
48 |
| -import javax.naming.directory.ModificationItem; |
49 |
| -import javax.naming.directory.SearchControls; |
50 |
| -import javax.naming.directory.SearchResult; |
51 |
| -import javax.naming.ldap.LdapContext; |
52 |
| -import javax.naming.ldap.LdapName; |
53 |
| - |
54 |
| -import java.util.List; |
55 |
| - |
56 | 53 | import static org.assertj.core.api.Assertions.assertThat;
|
57 | 54 | import static org.assertj.core.api.Assertions.fail;
|
58 |
| -import static org.mockito.Matchers.any; |
59 |
| -import static org.mockito.Matchers.argThat; |
60 |
| -import static org.mockito.Matchers.eq; |
| 55 | +import static org.mockito.ArgumentMatchers.any; |
| 56 | +import static org.mockito.ArgumentMatchers.argThat; |
| 57 | +import static org.mockito.ArgumentMatchers.eq; |
61 | 58 | import static org.mockito.Mockito.doNothing;
|
62 | 59 | import static org.mockito.Mockito.doThrow;
|
63 | 60 | import static org.mockito.Mockito.mock;
|
|
0 commit comments