Search in sources :

Example 6 with CmsCategory

use of com.bc.pmpheep.back.po.CmsCategory in project pmph by BCSquad.

the class CmsCategoryServiceTest method testUpdateCmsCategory.

@Test
public void testUpdateCmsCategory() {
    CmsCategory category = this.addCmsCategory();
    Integer count = cmsCategoryService.updateCmsCategory(new CmsCategory(category.getId(), "d:/pmph/img", "图片路径"));
    Assert.assertTrue("是否更新CmsCategory成功", count > 0);
}
Also used : CmsCategory(com.bc.pmpheep.back.po.CmsCategory) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest)

Example 7 with CmsCategory

use of com.bc.pmpheep.back.po.CmsCategory in project pmph by BCSquad.

the class CmsCategoryServiceTest method testGetCmsCategoryById.

@Test
public void testGetCmsCategoryById() {
    CmsCategory category = this.addCmsCategory();
    CmsCategory cms = cmsCategoryService.getCmsCategoryById(category.getId());
    logger.info(cms.toString());
    Assert.assertNotNull("按ID查询是否该对象", cms);
}
Also used : CmsCategory(com.bc.pmpheep.back.po.CmsCategory) Test(org.junit.Test) BaseTest(com.bc.pmpheep.test.BaseTest)

Aggregations

CmsCategory (com.bc.pmpheep.back.po.CmsCategory)7 BaseTest (com.bc.pmpheep.test.BaseTest)4 Test (org.junit.Test)4 CmsContent (com.bc.pmpheep.back.po.CmsContent)1 Material (com.bc.pmpheep.back.po.Material)1 MaterialContact (com.bc.pmpheep.back.po.MaterialContact)1 MaterialExtra (com.bc.pmpheep.back.po.MaterialExtra)1 CmsCategoryRoleVO (com.bc.pmpheep.back.vo.CmsCategoryRoleVO)1 Content (com.bc.pmpheep.general.po.Content)1 CheckedServiceException (com.bc.pmpheep.service.exception.CheckedServiceException)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 Map (java.util.Map)1