package org.fanli.config;
|
|
import org.junit.Test;
|
|
import com.yeshi.fanli.entity.system.ConfigCategory;
|
import com.yeshi.fanli.entity.system.ConfigCategory.ConfigCategoryEnum;
|
import com.yeshi.fanli.entity.system.ConfigKeyEnum;
|
import com.yeshi.fanli.service.inter.config.ConfigCategoryService;
|
import com.yeshi.fanli.util.BeanUtil;
|
|
public class Test_ConfigCategoryService {
|
|
@Test
|
public void addConfigCategory() {
|
ConfigCategoryService service = BeanUtil.getBean(ConfigCategoryService.class);
|
|
ConfigCategory c1 = new ConfigCategory();
|
c1.setKeyEnum(ConfigKeyEnum.appDownLink);
|
c1.setType(ConfigCategoryEnum.helpStrategy);
|
c1.setOrder(13);
|
service.addConfigCategory(c1);
|
|
/*ConfigCategory c2 = new ConfigCategory();
|
c2.setKeyEnum(ConfigKeyEnum.teamHelpUrl);
|
c2.setType(ConfigCategoryEnum.helpStrategy);
|
c2.setOrder(8);
|
service.addConfigCategory(c2);
|
|
|
ConfigCategory c3 = new ConfigCategory();
|
c3.setKeyEnum(ConfigKeyEnum.inviteHelpLink);
|
c3.setType(ConfigCategoryEnum.helpStrategy);
|
c3.setOrder(9);
|
service.addConfigCategory(c3);
|
|
|
ConfigCategory c4 = new ConfigCategory();
|
c4.setKeyEnum(ConfigKeyEnum.inviteCodeInputHelp);
|
c4.setType(ConfigCategoryEnum.helpStrategy);
|
c4.setOrder(10);
|
service.addConfigCategory(c4);
|
|
ConfigCategory c5 = new ConfigCategory();
|
c5.setKeyEnum(ConfigKeyEnum.convertDocHelpLink);
|
c5.setType(ConfigCategoryEnum.helpStrategy);
|
c5.setOrder(11);
|
service.addConfigCategory(c5);
|
|
|
ConfigCategory c6 = new ConfigCategory();
|
c6.setKeyEnum(ConfigKeyEnum.customerServiceLink);
|
c6.setType(ConfigCategoryEnum.helpStrategy);
|
c6.setOrder(12);
|
service.addConfigCategory(c6);*/
|
|
}
|
}
|