Github user Randgalt commented on a diff in the pull request:

    https://github.com/apache/zookeeper/pull/84#discussion_r85649028
  
    --- Diff: 
src/java/main/org/apache/zookeeper/server/auth/ProviderRegistry.java ---
    @@ -31,7 +31,15 @@
     
         private static boolean initialized = false;
         private static HashMap<String, AuthenticationProvider> 
authenticationProviders =
    -        new HashMap<String, AuthenticationProvider>();
    +        new HashMap<>();
    +
    +    //VisibleForTesting
    +    public static void reset() {
    --- End diff --
    
    I use it in the external code that I'm writing that uses this feature. I 
can see it being useful to others as well. Without it it's very difficult to 
write unit tests using custom auth plugins.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to