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);
}
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);
}
Aggregations