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:
[email protected]


Reply via email to