@Test public void getGuidePostsCacheWrapper(){ testCache = Mockito.mock(GuidePostsCache.class); ConnectionQueryServices mockQueryServices = Mockito.mock(ConnectionQueryServices.class); Configuration mockConfiguration = Mockito.mock(Configuration.class); GuidePostsCacheWrapper value = helper.getGuidePostsCache(TestGuidePostsCacheFactory.class.getTypeName(), mockQueryServices, mockConfiguration); value.invalidateAll(); Mockito.verify(testCache,Mockito.atLeastOnce()).invalidateAll(); }
public GuidePostsCacheWrapper getGuidePostsCache(String classStr, ConnectionQueryServices queryServices, Configuration config) { ReadOnlyProps props = null; if (queryServices != null) { props = queryServices.getProps(); } GuidePostsCacheFactory guidePostCacheFactory = loadAndGetGuidePostsCacheFactory(classStr); PhoenixStatsLoader phoenixStatsLoader = guidePostsCacheFactory.getPhoenixStatsLoader(queryServices, props, config); GuidePostsCache guidePostsCache = guidePostCacheFactory.getGuidePostsCache(phoenixStatsLoader, config); return new GuidePostsCacheWrapper(guidePostsCache); }
GuidePostsCacheProvider { public GuidePostsCacheWrapper getGuidePostsCache(String classStr, ConnectionQueryServices queryServices, Configuration config) { ReadOnlyProps props = null; if (queryServices != null) { props = queryServices.getProps(); } GuidePostsCacheFactory guidePostCacheFactory = loadAndGetGuidePostsCacheFactory(classStr); PhoenixStatsLoader phoenixStatsLoader = guidePostsCacheFactory.getPhoenixStatsLoader(queryServices, props, config); GuidePostsCache guidePostsCache = guidePostCacheFactory.getGuidePostsCache(phoenixStatsLoader, config); return new GuidePostsCacheWrapper(guidePostsCache); } }
GuidePostsCacheProvider { public GuidePostsCacheWrapper getGuidePostsCache(String classStr, ConnectionQueryServices queryServices, Configuration config) { ReadOnlyProps props = null; if (queryServices != null) { props = queryServices.getProps(); } GuidePostsCacheFactory guidePostCacheFactory = loadAndGetGuidePostsCacheFactory(classStr); PhoenixStatsLoader phoenixStatsLoader = guidePostsCacheFactory.getPhoenixStatsLoader(queryServices, props, config); GuidePostsCache guidePostsCache = guidePostCacheFactory.getGuidePostsCache(phoenixStatsLoader, config); return new GuidePostsCacheWrapper(guidePostsCache); }  }
GuidePostsCacheProvider { public GuidePostsCacheWrapper getGuidePostsCache(String classStr, ConnectionQueryServices queryServices, Configuration config) { ReadOnlyProps props = null; if (queryServices != null) { props = queryServices.getProps(); } GuidePostsCacheFactory guidePostCacheFactory = loadAndGetGuidePostsCacheFactory(classStr); PhoenixStatsLoader phoenixStatsLoader = guidePostsCacheFactory.getPhoenixStatsLoader(queryServices, props, config); GuidePostsCache guidePostsCache = guidePostCacheFactory.getGuidePostsCache(phoenixStatsLoader, config); return new GuidePostsCacheWrapper(guidePostsCache); }  GuidePostsCacheWrapper getGuidePostsCache(String classStr, ConnectionQueryServices queryServices,
            Configuration config); }
GuidePostsCacheProvider { public GuidePostsCacheWrapper getGuidePostsCache(String classStr, ConnectionQueryServices queryServices, Configuration config) { ReadOnlyProps props = null; if (queryServices != null) { props = queryServices.getProps(); } GuidePostsCacheFactory guidePostCacheFactory = loadAndGetGuidePostsCacheFactory(classStr); PhoenixStatsLoader phoenixStatsLoader = guidePostsCacheFactory.getPhoenixStatsLoader(queryServices, props, config); GuidePostsCache guidePostsCache = guidePostCacheFactory.getGuidePostsCache(phoenixStatsLoader, config); return new GuidePostsCacheWrapper(guidePostsCache); }  GuidePostsCacheWrapper getGuidePostsCache(String classStr, ConnectionQueryServices queryServices,
            Configuration config);  }