@Test public void testGetSingleIcon() { Promise<String> promise = cache.getIcon(ICON_1); verify(resourceContentService).get(anyString(), any()); Assertions.assertThat(promise).isNotNull(); }
@Override public Promise<String> getIcon(String iconPath) { return cachedIcons.computeIfAbsent(iconPath, this::lookupPromise); }
WorkItemIconCacheImpl implements WorkItemIconCache { @Override public Promise<String> getIcon(String iconPath) { return cachedIcons.computeIfAbsent(iconPath, this::lookupPromise); } }
WorkItemIconCacheImpl implements WorkItemIconCache { @Override public Promise<String> getIcon(String iconPath) { return cachedIcons.computeIfAbsent(iconPath, this::lookupPromise); } @Inject  WorkItemIconCacheImpl(final ResourceContentService resourceContentService); }
WorkItemIconCacheImpl implements WorkItemIconCache { @Override public Promise<String> getIcon(String iconPath) { return cachedIcons.computeIfAbsent(iconPath, this::lookupPromise); } @Inject  WorkItemIconCacheImpl(final ResourceContentService resourceContentService); @Override Promise<String> getIcon(String iconPath); }
WorkItemIconCacheImpl implements WorkItemIconCache { @Override public Promise<String> getIcon(String iconPath) { return cachedIcons.computeIfAbsent(iconPath, this::lookupPromise); } @Inject  WorkItemIconCacheImpl(final ResourceContentService resourceContentService); @Override Promise<String> getIcon(String iconPath);  }