-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SHIRO-778] onInit method on AuthenticatingRealm is called twice #240
Conversation
config/ogdl/src/main/java/org/apache/shiro/config/ogdl/ReflectionBuilder.java
Outdated
Show resolved
Hide resolved
config/ogdl/src/main/java/org/apache/shiro/config/ogdl/ReflectionBuilder.java
Outdated
Show resolved
Hide resolved
config/ogdl/src/main/java/org/apache/shiro/config/ogdl/ReflectionBuilder.java
Outdated
Show resolved
Hide resolved
54fe26e
to
b43c8af
Compare
@bdemers I made some polish, I think it's better now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a little detail left if you don't mind
config/ogdl/src/main/java/org/apache/shiro/config/ogdl/ReflectionBuilder.java
Outdated
Show resolved
Hide resolved
Looks good,! it would be great to have a test for this one. (possibly just tweaking the existing test |
Or just create a mock objects and see if |
config/ogdl/src/main/java/org/apache/shiro/config/ogdl/ReflectionBuilder.java
Show resolved
Hide resolved
bf7837e
to
0bca45b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one testcase missing, see description. It is similar to my previous one, but in mine, null
was called after the defined objects, whereas we should have a "correct" test case where we call the method with null
first (which is what actually happens in shiro).
config/ogdl/src/test/groovy/org/apache/shiro/config/ogdl/ReflectionBuilderTest.groovy
Outdated
Show resolved
Hide resolved
LGTM 👍 |
No description provided.