package chanedi.generator;

import chanedi.enums.DBDialectType;
import chanedi.generator.file.FilesGenerator;
import chanedi.generator.file.GlobalConfig;
import org.junit.Test;

/**
 * Created by jijingyu625 on 2016/4/18.
 */
public class FilesGeneratorTest {

    @Test
    public void generate() throws Exception {
        FilesGenerator generator = new FilesGenerator();
        GlobalConfig globalConfig = generator.getGlobalConfig();
//        globalConfig.setOutProjectPath("D:/");
        globalConfig.setBeanNameRegex("^BUS_(\\w+)$");
//        globalConfig.setBeanNameRegex("^T_[A-Z]{3}_(\\w+)$");
        globalConfig.setJavaPackageName("com.xx.common.file");
        globalConfig.setJavaPackagePath("com");
        globalConfig.setDbDialectType(DBDialectType.ORACLE);
        globalConfig.setTmplPath("classpath:/tmpl/file/example2");
        globalConfig.setIgnoreExists(false);

        generator.process();
    }
}
@@ -175,56 +175,8 @@
 t;%0A%0A
-/**%0A * Created by jijingyu625 on 2016/4/18.%0A */%0A
 publ
@@ -384,18 +384,16 @@
 nfig();%0A
-//
         
@@ -427,16 +427,19 @@
 ath(%22D:/
+gen
 %22);%0A    
@@ -478,11 +478,11 @@
 x(%22%5E
-BUS
+YEB
 _(%5C%5C
@@ -874,8 +874,9 @@
 %0A    %7D%0A%7D
+%0A

Update FilesGeneratorTest.java