|
28 | 28 | import org.apache.shardingsphere.infra.metadata.database.schema.model.ShardingSphereSchema;
|
29 | 29 | import org.apache.shardingsphere.infra.metadata.database.schema.model.ShardingSphereTable;
|
30 | 30 | import org.apache.shardingsphere.infra.rule.ShardingSphereRule;
|
31 |
| -import org.apache.shardingsphere.infra.rule.attribute.RuleAttributes; |
32 |
| -import org.apache.shardingsphere.infra.rule.attribute.table.TableMapperRuleAttribute; |
33 | 31 | import org.apache.shardingsphere.infra.spi.type.typed.TypedSPILoader;
|
34 | 32 | import org.apache.shardingsphere.mode.metadata.changed.RuleItemChangedNodePathBuilder;
|
35 | 33 | import org.apache.shardingsphere.mode.metadata.manager.MetaDataContextManager;
|
@@ -171,7 +169,6 @@ void assertAlterRuleConfiguration() throws SQLException {
|
171 | 169 | when(database.getName()).thenReturn("foo_db");
|
172 | 170 | when(database.getProtocolType()).thenReturn(TypedSPILoader.getService(DatabaseType.class, "FIXTURE"));
|
173 | 171 | ShardingSphereRule rule = mock(ShardingSphereRule.class);
|
174 |
| - when(rule.getAttributes()).thenReturn(new RuleAttributes(mock(TableMapperRuleAttribute.class))); |
175 | 172 | when(database.getRuleMetaData().getRules()).thenReturn(Collections.singleton(rule));
|
176 | 173 | ShardingSphereMetaData metaData = new ShardingSphereMetaData(Collections.singleton(database), mock(), mock(), new ConfigurationProperties(new Properties()));
|
177 | 174 | when(metaDataContextManager.getMetaDataContexts().getMetaData()).thenReturn(metaData);
|
@@ -200,7 +197,6 @@ void assertRemoveRuleConfigurationItem() throws SQLException {
|
200 | 197 | when(database.getName()).thenReturn("foo_db");
|
201 | 198 | when(database.getProtocolType()).thenReturn(TypedSPILoader.getService(DatabaseType.class, "FIXTURE"));
|
202 | 199 | ShardingSphereRule rule = mock(ShardingSphereRule.class);
|
203 |
| - when(rule.getAttributes()).thenReturn(new RuleAttributes(mock(TableMapperRuleAttribute.class))); |
204 | 200 | when(database.getRuleMetaData().getRules()).thenReturn(Collections.singleton(rule));
|
205 | 201 | ShardingSphereMetaData metaData = new ShardingSphereMetaData(Collections.singleton(database), mock(), mock(), new ConfigurationProperties(new Properties()));
|
206 | 202 | when(metaDataContextManager.getMetaDataContexts().getMetaData()).thenReturn(metaData);
|
|
0 commit comments