wx930910 opened a new pull request #397:
URL: https://github.com/apache/curator/pull/397


   Fixes [CURATOR-610](https://issues.apache.org/jira/browse/CURATOR-610)
   
   ### Description
   Refactor test class 
[CountCuratorWatcher](https://github.com/apache/curator/blob/4a11aaef8b190dc220d35b7a91df294bfa06250e/curator-framework/src/test/java/org/apache/curator/framework/imps/TestWatcherIdentity.java#L42)
 by using mocking object created by Mockito.
   
   <hr>
   
   ##### Key changed/added classes in this PR
   - Create mocking object to replace test subclass `CountCuratorWatcher`, 
decouple test from production code.
   - Make test logic more clear by using method stub instead of method 
overriding.
   - Extract AtomicInteger variable out of the test subclass. Use the extracted 
variable in assertation statement to check `process(WatchedEvent)` method 
invocation status.
   
   <hr>


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to