File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
oauth2-oidc/src/test/java/software/xdev/sse/oauth2/userinfo Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 20
20
import java .util .Arrays ;
21
21
import java .util .List ;
22
22
import java .util .Set ;
23
+ import java .util .function .Predicate ;
23
24
import java .util .stream .Collectors ;
24
25
25
26
import org .junit .jupiter .api .Assertions ;
@@ -59,9 +60,13 @@ void fields()
59
60
@ Test
60
61
void methods ()
61
62
{
62
- final List <Method > actual = Arrays .stream (OidcUserService .class .getDeclaredMethods ()).toList ();
63
+ final Predicate <Method > filterOutMethods = m -> !m .isSynthetic ();
64
+ final List <Method > actual = Arrays .stream (OidcUserService .class .getDeclaredMethods ())
65
+ .filter (filterOutMethods )
66
+ .toList ();
63
67
Assertions .assertTrue (Arrays .stream (
64
68
org .springframework .security .oauth2 .client .oidc .userinfo .OidcUserService .class .getDeclaredMethods ())
69
+ .filter (filterOutMethods )
65
70
.allMatch (e -> actual .stream ()
66
71
.anyMatch (a -> a .getName ().equals (e .getName ())
67
72
&& a .getReturnType ().equals (e .getReturnType ())
You can’t perform that action at this time.
0 commit comments