Skip to content

Commit

Permalink
fix: update test error
Browse files Browse the repository at this point in the history
  • Loading branch information
sadadw1 committed Aug 16, 2024
1 parent 7f5cb74 commit 2b47223
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import run.mone.ai.codegen.MybatisGenerator;
import run.mone.ai.codegen.bo.FeatureGeneratType;
import run.mone.ai.codegen.bo.FeatureGenerateBo;
import run.mone.ai.codegen.bo.FeatureGenerateType;
import run.mone.ai.codegen.bo.MybatisGeneratorResult;

public class FeatureGeneratorTest {
Expand All @@ -16,7 +17,7 @@ public class FeatureGeneratorTest {
@Test
public void testCreateTable() {
FeatureGenerateBo featureGenerateBo = new FeatureGenerateBo();
featureGenerateBo.setType(FeatureGeneratType.TABLE);
featureGenerateBo.setType(FeatureGenerateType.TABLE);
featureGenerateBo.setJdbcUrl(dbUrl);
featureGenerateBo.setUserName(dbUser);
featureGenerateBo.setPassword(dbPwd);
Expand All @@ -27,13 +28,12 @@ public void testCreateTable() {
" PRIMARY KEY (`id`)\n" +
");";
featureGenerateBo.setSql(sql);
FeatureGenerator.generateWithTemplate(featureGenerateBo);
FeatureGenerator.generateWithGenerator(featureGenerateBo);
}

@Test
public void testGenerateWithMybatis() {
FeatureGenerateBo featureGenerateBo = new FeatureGenerateBo();
featureGenerateBo.setType(FeatureGeneratType.CODE_WITH_MYBATIS_GENERATOR);
featureGenerateBo.setJdbcUrl(dbUrl);
featureGenerateBo.setUserName(dbUser);
featureGenerateBo.setPassword(dbPwd);
Expand Down

0 comments on commit 2b47223

Please sign in to comment.