VoProductServiceImpl implements VoProductService { @Override public List<VoAssociation> getAllAssociations() throws Exception { return voAssemblySupport.assembleVos(VoAssociation.class, AssociationDTO.class, dtoAssociationService.getAll()); } VoProductServiceImpl(final DtoAssociationService dtoAssociationService,
                                final DtoProductService dtoProductService,
                                final DtoProductSkuService dtoProductSkuService,
                                final DtoProductAssociationService dtoProductAssociationService,
                                final DtoProductOptionService dtoProductOptionService,
                                final DtoProductCategoryService dtoProductCategoryService,
                                final DtoBrandService dtoBrandService,
                                final DtoProductTypeService dtoProductTypeService,
                                final DtoAttributeService dtoAttributeService,
                                final FederationFacade federationFacade,
                                final VoAssemblySupport voAssemblySupport,
                                final VoIOSupport voIOSupport); @Override List<VoAssociation> getAllAssociations(); @Override VoSearchResult<VoProduct> getFilteredProducts(final VoSearchContext filter); @Override VoProductWithLinks getProductById(final long id); @Override VoProductWithLinks updateProduct(final VoProductWithLinks vo); @Override VoProductWithLinks createProduct(final VoProduct vo); @Override VoProductWithLinks copyProduct(final long id, final VoProduct vo); @Override void removeProduct(final long id); @Override List<VoAttrValueProduct> getProductAttributes(final long productId); @Override List<VoAttrValueProduct> updateProductAttributes(final List<MutablePair<VoAttrValueProduct, Boolean>> vo); @Override List<VoProductSku> getProductSkuAll(final long productId); @Override VoSearchResult<VoProductSku> getFilteredProductSkus(final VoSearchContext filter); @Override VoProductSku getSkuById(final long id); @Override VoProductSku updateSku(final VoProductSku vo); @Override VoProductSku createSku(final VoProductSku vo); @Override VoProductSku copySku(final long id, final VoProductSku vo); @Override void removeSku(final long id); @Override List<VoAttrValueProductSku> getSkuAttributes(final long skuId); @Override List<VoAttrValueProductSku> updateSkuAttributes(final List<MutablePair<VoAttrValueProductSku, Boolean>> vo);  }
@Test public void testGetAssociations() throws Exception { final List<VoAssociation> associations = voProductService.getAllAssociations(); assertNotNull(associations); assertFalse(associations.isEmpty()); }