ConfigBuilder { public static boolean matcherRegTable(String tableName) { return REGX.matcher(tableName).find(); } ConfigBuilder(PackageConfig packageConfig, DataSourceConfig dataSourceConfig, StrategyConfig strategyConfig,
                         TemplateConfig template, GlobalConfig globalConfig); @Deprecated String formatComment(String comment); void close(); @Deprecated ConfigBuilder setTableInfoList(List<TableInfo> tableInfoList); static boolean matcherRegTable(String tableName); @Deprecated Map<String, String> getPackageInfo();  }
@Test void matcherRegTableTest(){ Assertions.assertFalse(ConfigBuilder.matcherRegTable("user")); Assertions.assertFalse(ConfigBuilder.matcherRegTable("USER")); Assertions.assertFalse(ConfigBuilder.matcherRegTable("t_user")); Assertions.assertFalse(ConfigBuilder.matcherRegTable("T_USER")); Assertions.assertFalse(ConfigBuilder.matcherRegTable("t_user_1")); Assertions.assertFalse(ConfigBuilder.matcherRegTable("t_user_12")); Assertions.assertFalse(ConfigBuilder.matcherRegTable("t-user-12")); Assertions.assertTrue(ConfigBuilder.matcherRegTable("t_user_[0-9]")); Assertions.assertTrue(ConfigBuilder.matcherRegTable("t_user_\\d")); Assertions.assertTrue(ConfigBuilder.matcherRegTable("t_user_\\d{3,4}")); Assertions.assertTrue(ConfigBuilder.matcherRegTable("^t_.*")); }