@Test public void shouldReturnGivenDefaultIconWhenBundleDoesNotContainIcon() { setupBundleRetrieval(); BundleIcon bundleIcon = bundleIconService.getBundleIconById(BUNDLE_ID, DEFAULT_ICON_2); byte[] expectedIcon = readDefaultIcon(DEFAULT_PATH + DEFAULT_ICON_2); assertArrayEquals(expectedIcon, bundleIcon.getIcon()); assertEquals(ICON_MIME, bundleIcon.getMime()); }
@Override public BundleIcon getBundleIconById(long bundleId, String defaultIcon) { Bundle bundle = getBundleById(bundleId); return getBundleIcon(bundle, defaultIcon); }
BundleIconServiceImpl implements BundleIconService { @Override public BundleIcon getBundleIconById(long bundleId, String defaultIcon) { Bundle bundle = getBundleById(bundleId); return getBundleIcon(bundle, defaultIcon); } }
BundleIconServiceImpl implements BundleIconService { @Override public BundleIcon getBundleIconById(long bundleId, String defaultIcon) { Bundle bundle = getBundleById(bundleId); return getBundleIcon(bundle, defaultIcon); }  }
BundleIconServiceImpl implements BundleIconService { @Override public BundleIcon getBundleIconById(long bundleId, String defaultIcon) { Bundle bundle = getBundleById(bundleId); return getBundleIcon(bundle, defaultIcon); }  @Override BundleIcon getBundleIconById(long bundleId, String defaultIcon); @Override BundleIcon getBundleIconByName(String bundleName, String defaultIcon); }
BundleIconServiceImpl implements BundleIconService { @Override public BundleIcon getBundleIconById(long bundleId, String defaultIcon) { Bundle bundle = getBundleById(bundleId); return getBundleIcon(bundle, defaultIcon); }  @Override BundleIcon getBundleIconById(long bundleId, String defaultIcon); @Override BundleIcon getBundleIconByName(String bundleName, String defaultIcon);  }