@Test public void testGetPresetIcon() { assertEquals("getMillestoneImage", WorkItemDefinitionStandaloneClientService.getPresetIcon("defaultmilestoneicon.png")); assertEquals("", WorkItemDefinitionStandaloneClientService.getPresetIcon("someicon.png")); }
protected static String getPresetIcon(final String iconUri) { if (iconUri.equals(MILESTONE_ICON)) { return WidPresetResources.INSTANCE .getMillestoneImage() .getSafeUri() .asString(); } return ""; }
WorkItemDefinitionStandaloneClientService implements WorkItemDefinitionClientService { protected static String getPresetIcon(final String iconUri) { if (iconUri.equals(MILESTONE_ICON)) { return WidPresetResources.INSTANCE .getMillestoneImage() .getSafeUri() .asString(); } return ""; } }
WorkItemDefinitionStandaloneClientService implements WorkItemDefinitionClientService { protected static String getPresetIcon(final String iconUri) { if (iconUri.equals(MILESTONE_ICON)) { return WidPresetResources.INSTANCE .getMillestoneImage() .getSafeUri() .asString(); } return ""; } @Inject  WorkItemDefinitionStandaloneClientService(final Promises promises,
                                                     final WorkItemDefinitionCacheRegistry registry,
                                                     final ResourceContentService resourceContentService,
                                                     final WorkItemIconCache workItemIconCache); }
WorkItemDefinitionStandaloneClientService implements WorkItemDefinitionClientService { protected static String getPresetIcon(final String iconUri) { if (iconUri.equals(MILESTONE_ICON)) { return WidPresetResources.INSTANCE .getMillestoneImage() .getSafeUri() .asString(); } return ""; } @Inject  WorkItemDefinitionStandaloneClientService(final Promises promises,
                                                     final WorkItemDefinitionCacheRegistry registry,
                                                     final ResourceContentService resourceContentService,
                                                     final WorkItemIconCache workItemIconCache); @PostConstruct void init(); @Produces @Default @Override WorkItemDefinitionRegistry getRegistry(); @Override Promise<Collection<WorkItemDefinition>> call(final Metadata input); @PreDestroy void destroy(); }
WorkItemDefinitionStandaloneClientService implements WorkItemDefinitionClientService { protected static String getPresetIcon(final String iconUri) { if (iconUri.equals(MILESTONE_ICON)) { return WidPresetResources.INSTANCE .getMillestoneImage() .getSafeUri() .asString(); } return ""; } @Inject  WorkItemDefinitionStandaloneClientService(final Promises promises,
                                                     final WorkItemDefinitionCacheRegistry registry,
                                                     final ResourceContentService resourceContentService,
                                                     final WorkItemIconCache workItemIconCache); @PostConstruct void init(); @Produces @Default @Override WorkItemDefinitionRegistry getRegistry(); @Override Promise<Collection<WorkItemDefinition>> call(final Metadata input); @PreDestroy void destroy();  }