You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by GitBox <gi...@apache.org> on 2020/11/06 03:38:59 UTC

[GitHub] [zookeeper] ctubbsii commented on pull request #1518: disconnect reason wrong

ctubbsii commented on pull request #1518:
URL: https://github.com/apache/zookeeper/pull/1518#issuecomment-722791752


   > > You can create your XXXXTest.java to the same package as ReadOnlyZooKeeperServer, like a ReadOnlyZooKeeperServerTest.java
   > 
   > This will solve the problem.
   > But 'org.apache.zookeeper.server.ServerCnxn.CloseRequestException' has protected access in 'org.apache.zookeeper.server.ServerCnxn', I can't use it in ReadOnlyZooKeeperServerTest.java.
   > Can I change 'CloseRequestException' access permissions?
   > Is there another way to solve the problem?
   > Thank you!
   
   If something has protected methods, you may be able to create a subclass to access its protected methods for testing.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org