ProductSkuServiceImpl extends BaseGenericServiceImpl<ProductSku> implements ProductSkuService { @Override public Collection<ProductSku> getAllProductSkus(final long productId) { final Product product = productDao.findById(productId); return product.getSku(); } ProductSkuServiceImpl(final GenericFTSCapableDAO<ProductSku, Long, Object> productSkuDao,
                                 final GenericFTSCapableDAO<Product, Long, Object> productDao,
                                 final GenericDAO<SkuPrice, Long> skuPriceDao); @Override Collection<ProductSku> getAllProductSkus(final long productId); @Override ProductSku findProductSkuBySkuCode(final String skuCode); @Override List<ProductSku> findProductSkus(final int start, final int offset, final String sort, final boolean sortDescending, final Map<String, List> filter); @Override int findProductSkuCount(final Map<String, List> filter); @Override ProductSku getProductSkuBySkuCode(final String skuCode); @Override ProductSkuSearchResultPageDTO getProductSkuSearchResultDTOByQuery(final NavigationContext context); @Override List<Pair<String, SkuPrice>> getAllPrices(final long productId); @Override List<Pair<String, SkuWarehouse>> getAllInventory(final long productId); @Override void removeAllPrices(final long productId); @Override void removeAllPrices(final ProductSku sku); @Override void removeAllInventory(final long productId); @Override void removeAllInventory(final ProductSku sku); @Override void removeAllWishLists(final ProductSku sku); @Override void removeAllOptions(final long productId); @Override void removeAllOptions(final ProductSku sku);  }
@Test public void testGetAllProductSkus() { ProductSkuService productSkuService = (ProductSkuService) ctx().getBean(ServiceSpringKeys.PRODUCT_SKU_SERVICE); Collection<ProductSku> skus = productSkuService.getAllProductSkus(SOBOT_PK); assertNotNull(skus); assertEquals(4, skus.size()); }