Package org.libreplan.business.materials.entities

Examples of org.libreplan.business.materials.entities.MaterialCategory


    @Test
    @Transactional
    public void testListMaterialCategories() {
        int previous = materialCategoryDAO.list(MaterialCategory.class).size();
        MaterialCategory materialCategory = createValidMaterialCategory();
        materialCategoryDAO.save(materialCategory);
        List<MaterialCategory> list = materialCategoryDAO.list(MaterialCategory.class);
        assertEquals(previous + 1, list.size());
    }
View Full Code Here


    }

    @Test
    @Transactional
    public void testListChildrenMaterialCategories() {
        MaterialCategory category = createValidMaterialCategory();
        MaterialCategory subcategory = createValidMaterialCategory();
        int previous = category.getSubcategories().size();
        category.addSubcategory(subcategory);
        materialCategoryDAO.save(category);
        Set<MaterialCategory> childrenList = category.getSubcategories();
        assertEquals(previous + 1, childrenList.size());
View Full Code Here

TOP

Related Classes of org.libreplan.business.materials.entities.MaterialCategory

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.