Package org.broadleafcommerce.common.media.domain

Examples of org.broadleafcommerce.common.media.domain.MediaImpl


        testCategory = catalogService.findCategoryById(category.getId());
        assert testCategory.getId().equals(category.getId());
               
        Map<String, Media> categoryMedia = testCategory.getCategoryMedia();
        Media media = new MediaImpl();
        media.setAltText("test");
        media.setTitle("large");
        media.setUrl("http://myUrl");
        categoryMedia.put("large", media);
        catalogService.saveCategory(testCategory);

        testCategory = catalogService.findCategoryById(category.getId());
        assert(testCategory.getCategoryMedia().get("large") != null);
View Full Code Here

TOP

Related Classes of org.broadleafcommerce.common.media.domain.MediaImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.