|
1 | 1 | package org.springframework.ldap.aot.hint;
|
2 | 2 |
|
| 3 | +import javax.naming.ldap.PagedResultsControl; |
| 4 | +import javax.naming.ldap.PagedResultsResponseControl; |
| 5 | +import javax.naming.ldap.SortControl; |
| 6 | +import javax.naming.ldap.SortResponseControl; |
3 | 7 | import javax.net.ssl.SSLSocketFactory;
|
4 | 8 |
|
5 | 9 | import org.junit.Before;
|
@@ -48,6 +52,30 @@ public void defaultDirObjectFactoryHasHints() {
|
48 | 52 | .accepts(this.hints);
|
49 | 53 | }
|
50 | 54 |
|
| 55 | + @Test |
| 56 | + public void pagedResultsControlHasHints() { |
| 57 | + assertThat(RuntimeHintsPredicates.reflection().onType(PagedResultsControl.class).withMemberCategories( |
| 58 | + MemberCategory.INVOKE_PUBLIC_METHODS, MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS)).accepts(this.hints); |
| 59 | + assertThat(RuntimeHintsPredicates.reflection().onType(com.sun.jndi.ldap.ctl.PagedResultsControl.class).withMemberCategories( |
| 60 | + MemberCategory.INVOKE_PUBLIC_METHODS, MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS)).accepts(this.hints); |
| 61 | + assertThat(RuntimeHintsPredicates.reflection().onType(PagedResultsResponseControl.class).withMemberCategories( |
| 62 | + MemberCategory.INVOKE_PUBLIC_METHODS, MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS)).accepts(this.hints); |
| 63 | + assertThat(RuntimeHintsPredicates.reflection().onType(com.sun.jndi.ldap.ctl.PagedResultsResponseControl.class).withMemberCategories( |
| 64 | + MemberCategory.INVOKE_PUBLIC_METHODS, MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS)).accepts(this.hints); |
| 65 | + } |
| 66 | + |
| 67 | + @Test |
| 68 | + public void sortControlHasHints() { |
| 69 | + assertThat(RuntimeHintsPredicates.reflection().onType(SortControl.class).withMemberCategories( |
| 70 | + MemberCategory.INVOKE_PUBLIC_METHODS, MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS)).accepts(this.hints); |
| 71 | + assertThat(RuntimeHintsPredicates.reflection().onType(com.sun.jndi.ldap.ctl.SortControl.class).withMemberCategories( |
| 72 | + MemberCategory.INVOKE_PUBLIC_METHODS, MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS)).accepts(this.hints); |
| 73 | + assertThat(RuntimeHintsPredicates.reflection().onType(SortResponseControl.class).withMemberCategories( |
| 74 | + MemberCategory.INVOKE_PUBLIC_METHODS, MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS)).accepts(this.hints); |
| 75 | + assertThat(RuntimeHintsPredicates.reflection().onType(com.sun.jndi.ldap.ctl.SortResponseControl.class).withMemberCategories( |
| 76 | + MemberCategory.INVOKE_PUBLIC_METHODS, MemberCategory.INVOKE_PUBLIC_CONSTRUCTORS)).accepts(this.hints); |
| 77 | + } |
| 78 | + |
51 | 79 | @Test
|
52 | 80 | public void sslSocketFactoryHasHints() throws Exception {
|
53 | 81 | assertThat(RuntimeHintsPredicates.reflection().onMethod(SSLSocketFactory.class.getDeclaredMethod("getDefault")))
|
|
0 commit comments