wx930910 opened a new pull request #102:
URL: https://github.com/apache/commons-rng/pull/102


   Fix [RNG-164](https://issues.apache.org/jira/browse/RNG-164)
   
   ### Description
   
   #### Replace test class 
[SimpleSampler](https://github.com/apache/commons-rng/blob/42a5151f9e2433ce84a6a77299cacbc389dcb870/commons-rng-sampling/src/test/java/org/apache/commons/rng/sampling/distribution/SamplerBaseTest.java#L33)
 by mocking object and improve test design
   <hr>
   
   ##### Motivation
   
   - Decouple test class `SimpleSampler` from production interface 
`SamplerBase`.
   - Remove the redundant test child class `SimpleSampler`.
   
   <hr>
   
   ##### Key changed/added classes in this PR
    * Created mocking object to replace test subclass `SimpleSampler`, 
decoupled test from production code.
    * Make test logic more clear by using method stub instead of method 
overriding.
    * Add Mockito dependency
   
   <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