package cn.huge.module; import cn.huge.module.buildcode.service.BuildCodeService; import cn.huge.base.common.base.BaseServiceTest; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; public class BuildCodeServiceTest extends BaseServiceTest { @Autowired private BuildCodeService service; private String basePackage = "cn.huge.module"; private String packageName = "hot"; private String className = "FileInfo"; private String tableSchema = "huge-dyh2.0_v100_dev"; private String tableName = "dyh_file_info"; private String author = "liyj"; private String version = "1.0.0"; @Test public void buildAllTest() { service.buildAll(basePackage, packageName, "HotVideo", tableSchema, "dyh_hot_video", author, version); service.buildAll(basePackage, packageName, "HotNews", tableSchema, "dyh_hot_news", author, version); } /******************************************************** * 下面单独执行 * ******************************************************** */ @Test public void buildPoTest() { service.buildPo(basePackage, packageName, "FlowNodeDef", tableSchema, "dyh_flow_node_def", author, version); service.buildJson(basePackage, packageName, "FlowNodeDef", tableSchema, "dyh_flow_node_def", author, version); service.buildDaoMapperXml(basePackage, packageName, "FlowNodeDef", tableSchema, "dyh_flow_node_def", author, version); service.buildPo(basePackage, packageName, "FlowNode", tableSchema, "dyh_flow_node", author, version); service.buildJson(basePackage, packageName, "FlowNode", tableSchema, "dyh_flow_node", author, version); service.buildDaoMapperXml(basePackage, packageName, "FlowNode", tableSchema, "dyh_flow_node", author, version); } @Test public void buildBoTest() { service.buildBo(basePackage, packageName, className, tableSchema, tableName, author, version); } @Test public void buildServiceTest() { service.buildService(basePackage, packageName, className, tableSchema, tableName, author, version); } @Test public void buildControllerTest() { service.buildController(basePackage, packageName, className, tableSchema, tableName, author, version); } @Test public void buildJsonTest() { service.buildJson(basePackage, packageName, className, tableSchema, tableName, author, version); } @Test public void buildJsFormTest() { service.buildJsForm(basePackage, packageName, className, tableSchema, tableName, author, version); } @Test public void buildServiceTestTest() { service.buildServiceTest(basePackage, packageName, className, tableSchema, tableName, author, version); } @Test public void buildControllerTestTest() { service.buildControllerTest(basePackage, packageName, className, tableSchema, tableName, author, version); } }