@Test(expected = NullPointerException.class) public void getItem_shouldThrowNPEForNullItemIdArgument() { itemDao.getItem(null); }
public Item getItem(final String itemId) { checkNotNull(emptyToNull(itemId), "Argument[itemId] must not be empty or null"); Item item = super.read(itemId); logger.info("Found for id[{}] following item[{}]", itemId, item); return item; }
ItemDao extends AbstractBaseDao<Item, String> implements ItemMapper { public Item getItem(final String itemId) { checkNotNull(emptyToNull(itemId), "Argument[itemId] must not be empty or null"); Item item = super.read(itemId); logger.info("Found for id[{}] following item[{}]", itemId, item); return item; } }
ItemDao extends AbstractBaseDao<Item, String> implements ItemMapper { public Item getItem(final String itemId) { checkNotNull(emptyToNull(itemId), "Argument[itemId] must not be empty or null"); Item item = super.read(itemId); logger.info("Found for id[{}] following item[{}]", itemId, item); return item; } ItemDao(final String collectionName); }
ItemDao extends AbstractBaseDao<Item, String> implements ItemMapper { public Item getItem(final String itemId) { checkNotNull(emptyToNull(itemId), "Argument[itemId] must not be empty or null"); Item item = super.read(itemId); logger.info("Found for id[{}] following item[{}]", itemId, item); return item; } ItemDao(final String collectionName); void updateInventoryQuantity(final Map<NumericValueUpdateParam, Object> params); int getInventoryQuantity(final String itemId); List<Item> getItemListByProduct(final String productId); Item getItem(final String itemId); }
ItemDao extends AbstractBaseDao<Item, String> implements ItemMapper { public Item getItem(final String itemId) { checkNotNull(emptyToNull(itemId), "Argument[itemId] must not be empty or null"); Item item = super.read(itemId); logger.info("Found for id[{}] following item[{}]", itemId, item); return item; } ItemDao(final String collectionName); void updateInventoryQuantity(final Map<NumericValueUpdateParam, Object> params); int getInventoryQuantity(final String itemId); List<Item> getItemListByProduct(final String productId); Item getItem(final String itemId);  }