@Test public void testIsDataUri() { boolean notDataUri = WorkItemDefinitionStandaloneClientService.isIconDataUri("test"); boolean dataUri = WorkItemDefinitionStandaloneClientService.isIconDataUri("data:test"); assertFalse(notDataUri); assertTrue(dataUri); }
protected static boolean isIconDataUri(String iconData) { return iconData.startsWith("data:"); }
WorkItemDefinitionStandaloneClientService implements WorkItemDefinitionClientService { protected static boolean isIconDataUri(String iconData) { return iconData.startsWith("data:"); } }
WorkItemDefinitionStandaloneClientService implements WorkItemDefinitionClientService { protected static boolean isIconDataUri(String iconData) { return iconData.startsWith("data:"); } @Inject  WorkItemDefinitionStandaloneClientService(final Promises promises,
                                                     final WorkItemDefinitionCacheRegistry registry,
                                                     final ResourceContentService resourceContentService,
                                                     final WorkItemIconCache workItemIconCache); }
WorkItemDefinitionStandaloneClientService implements WorkItemDefinitionClientService { protected static boolean isIconDataUri(String iconData) { return iconData.startsWith("data:"); } @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 boolean isIconDataUri(String iconData) { return iconData.startsWith("data:"); } @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();  }