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


   Fixes [LANG-1671](https://issues.apache.org/jira/browse/LANG-1671)
   
   ### Description
   Replace test class 
[AtomicSafeInitializerTestImpl](https://github.com/apache/commons-lang/blob/69c9593cc1da760bb4dbcf32f4ae755c54376b77/src/test/java/org/apache/commons/lang3/concurrent/AtomicSafeInitializerTest.java#L67)
 by mocking object created by Mockito.
   
   <hr>
   
   ##### Key changed/added classes in this PR
   - Create mocking object to replace test subclass 
`AtomicSafeInitializerTestImpl`, decouple test from production code.
   - Extract AtomicInteger variable out of the test subclass. Use the extracted 
variable in assertation statement to check `initialize()` method invocation 
status.
   - Introduce 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: issues-unsubscr...@commons.apache.org

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


Reply via email to