This post explains how to write an unit test case, to verify a Class’s private method is invoked. We invoke a Class’s private method indirectly through the help of public method exposed by the class. When writing unit test cases for public methods we want to make sure that private methods with expected arguments is…… Continue reading Verifying private method invocation
Month: April 2017
Accessing cache provider’s CacheManager implementation
This post explains how to access the cache provider’s CacheManager implementation through java cache api. In all my previous post related to Caching, I gave examples where I was using cache provider for caching functionality through the Java Cache API. The java cache api is set of specifications, which are implemented by cache providers and…… Continue reading Accessing cache provider’s CacheManager implementation