> + public void checkProductItem(ProductItem item) {
> + assertTrue(item.getId() > 0, "item id must be more than 0");
> + assertNotNull(item.getDescription(), "item description must be not
> null");
> + checkCategories(item.getCategories());
> + // units and capacity may be null
> + assertTrue(item.getPrices().size() >= 0);
> + for (ProductItemPrice price : item.getPrices()) {
> + checkPrice(price);
> + }
> + }
> +
> + public void checkCategories(Set<ProductItemCategory> categories) {
> + for (ProductItemCategory category : categories) {
> + assert category.getId() > 0 : category;
> + assert category.getName() != null : category;
> + assert category.getCategoryCode() != null : category;
Still using `assert` here
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/77/files#r7000527