Skip to content

Commit

Permalink
Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Sep 27, 2023
1 parent 23d63a4 commit 4cc0691
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class AlterShardingTableRuleStatementUpdaterTest {

private final ShardingRuleConfiguration currentRuleConfig = createCurrentShardingRuleConfiguration();

private final ResourceMetaData resourceMetaData = new ResourceMetaData("sharding_db", createDataSource());
private final ResourceMetaData resourceMetaData = new ResourceMetaData(createDataSource());

private final AlterShardingTableRuleStatementUpdater updater = new AlterShardingTableRuleStatementUpdater();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class CreateShardingTableRuleStatementUpdaterTest {
@BeforeEach
void before() {
when(database.getName()).thenReturn("schema");
ResourceMetaData resourceMetaData = new ResourceMetaData("sharding_db", createDataSource());
ResourceMetaData resourceMetaData = new ResourceMetaData(createDataSource());
when(database.getResourceMetaData()).thenReturn(resourceMetaData);
when(database.getRuleMetaData()).thenReturn(new RuleMetaData(Collections.singleton(new MockDataSourceContainedRule())));
}
Expand Down

0 comments on commit 4cc0691

Please sign in to comment.