yujian
2020-03-24 fd1dce3121a7773419263c495f92e160cc1e7124
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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);*/
        
    }
}