wx930910 opened a new pull request #41:
URL: https://github.com/apache/qpid-proton-j/pull/41


   Fixes [PROTON-2431](https://issues.apache.org/jira/browse/PROTON-2431)
   
   ### Description
   
   #### Refactor test class 
[SinkHandler](https://github.com/apache/qpid-proton-j/blob/c242c260e44d94bba1a9c82a22af3b0b2a0dc5c6/proton-j/src/test/java/org/apache/qpid/proton/reactor/ReactorTest.java#L388)
 by mocking object and improve test design
   <hr>
   
   ##### Motivation
   
   - Decoupling test class `SinkHandler` from production class `BaseHandler`.
   - Making test condition more clear by verifying mocking obejct's behavior 
with a local variable.
   - Making test logic more clear by using method stub instead of method 
overriding.
   
   <hr>
   
   ##### Key changed/added classes in this PR
    * Created mocking object to replace test subclass `SinkHandler`, decoupled 
test from production code.
    * Extract `Received` as a local variable to improve test logic and make 
test condition more explict.
    * Make test logic more clear by using method stub instead of method 
overriding.
   
   <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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to