File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
core/src/test/java/org/springframework/ldap/core Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 21
21
import org .junit .Before ;
22
22
import org .junit .Test ;
23
23
import org .mockito .ArgumentCaptor ;
24
+ import org .mockito .ArgumentMatcher ;
25
+
24
26
import org .springframework .LdapDataEntry ;
25
27
import org .springframework .dao .EmptyResultDataAccessException ;
26
28
import org .springframework .dao .IncorrectResultSizeDataAccessException ;
@@ -1858,17 +1860,17 @@ private SearchControls searchControlsOneLevel() {
1858
1860
return controls ;
1859
1861
}
1860
1862
1861
- private static class SearchControlsMatcher extends BaseMatcher <SearchControls > {
1863
+ private static class SearchControlsMatcher implements ArgumentMatcher <SearchControls > {
1862
1864
private final SearchControls controls ;
1863
1865
1864
1866
public SearchControlsMatcher (SearchControls controls ) {
1865
1867
this .controls = controls ;
1866
1868
}
1867
1869
1868
- @ Override
1869
- public boolean matches (Object item ) {
1870
+ @ Override
1871
+ public boolean matches (SearchControls item ) {
1870
1872
if (item instanceof SearchControls ) {
1871
- SearchControls s1 = ( SearchControls ) item ;
1873
+ SearchControls s1 = item ;
1872
1874
1873
1875
return controls .getSearchScope () == s1 .getSearchScope ()
1874
1876
&& controls .getReturningObjFlag () == s1 .getReturningObjFlag ()
@@ -1881,10 +1883,5 @@ public boolean matches(Object item) {
1881
1883
throw new IllegalArgumentException ();
1882
1884
}
1883
1885
}
1884
-
1885
- @ Override
1886
- public void describeTo (Description description ) {
1887
- description .appendText ("SearchControls matches" );
1888
- }
1889
1886
}
1890
1887
}
You can’t perform that action at this time.
0 commit comments