Skip to content

Commit

Permalink
Refactor ShardingSphereStatisticsFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Jan 17, 2025
1 parent e45ce17 commit 458b2c1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ private ContextManager mockContextManager() {
when(metaData.getGlobalRuleMetaData()).thenReturn(new RuleMetaData(Collections.singletonList(transactionRule)));
ComputeNodeInstanceContext computeNodeInstanceContext = mock(ComputeNodeInstanceContext.class);
when(computeNodeInstanceContext.getModeConfiguration()).thenReturn(mock(ModeConfiguration.class));
return new ContextManager(new MetaDataContexts(metaData, ShardingSphereStatisticsFactory.create(mock(MetaDataPersistService.class), metaData)), computeNodeInstanceContext, mock());
return new ContextManager(
new MetaDataContexts(metaData, ShardingSphereStatisticsFactory.create(mock(MetaDataPersistService.class, RETURNS_DEEP_STUBS), metaData)), computeNodeInstanceContext, mock());
}

@SuppressWarnings({"unchecked", "SameParameterValue"})
Expand Down

0 comments on commit 458b2c1

Please sign in to comment.