test_class.file: shardingsphere-infra/shardingsphere-infra-context/src/test/java/org/apache/shardingsphere/infra/context/schema/SchemaContextsBuilderTest.java
test_class.identifier: SchemaContextsBuilderTest
test_case.body: @Test
      public void assertBuildWithConfigurationsButWithoutDataSource() throws SQLException {
          DatabaseType databaseType = DatabaseTypes.getActualDatabaseType("FixtureDB");
          Properties props = new Properties();
          props.setProperty(ConfigurationPropertyKey.EXECUTOR_SIZE.getKey(), "1");
          SchemaContexts actual = new SchemaContextsBuilder(databaseType, Collections.singletonMap("logic_db", Collections.emptyMap()), 
                  Collections.singletonMap("logic_db", Collections.singleton(new FixtureRuleConfiguration())), props).build();
          assertThat(actual.getDatabaseType(), CoreMatchers.is(databaseType));
          assertRules(actual);
          assertTrue(actual.getSchemas().get("logic_db").getDataSources().isEmpty());
          assertTrue(actual.getAuthentication().getUsers().isEmpty());
          assertThat(actual.getProps().getProps().size(), CoreMatchers.is(1));
          assertThat(actual.getProps().getValue(ConfigurationPropertyKey.EXECUTOR_SIZE), CoreMatchers.is(1));
          assertFalse(actual.isCircuitBreak());
      }
test_case.class_method_signature: SchemaContextsBuilderTest.assertBuildWithConfigurationsButWithoutDataSource()
test_case.full_signature: @Test public void assertBuildWithConfigurationsButWithoutDataSource()
test_case.identifier: assertBuildWithConfigurationsButWithoutDataSource
test_case.invocations: getActualDatabaseType setProperty getKey build singletonMap emptyMap singletonMap singleton assertThat getDatabaseType is assertRules assertTrue isEmpty getDataSources get getSchemas assertTrue isEmpty getUsers getAuthentication assertThat size getProps getProps is assertThat getValue getProps is assertFalse isCircuitBreak
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertBuildWithConfigurationsButWithoutDataSource()
focal_class.declarator: databaseType
focal_class.modifier: private final
focal_class.original_string: private final DatabaseType databaseType;
focal_class.type: DatabaseType
focal_class.var_name: databaseType
focal_class.declarator: dataSources
focal_class.modifier: private final
focal_class.original_string: private final Map<String, Map<String, DataSource>> dataSources;
focal_class.type: Map<String, Map<String, DataSource>>
focal_class.var_name: dataSources
focal_class.declarator: ruleConfigs
focal_class.modifier: private final
focal_class.original_string: private final Map<String, Collection<RuleConfiguration>> ruleConfigs;
focal_class.type: Map<String, Collection<RuleConfiguration>>
focal_class.var_name: ruleConfigs
focal_class.declarator: authentication
focal_class.modifier: private final
focal_class.original_string: private final Authentication authentication;
focal_class.type: Authentication
focal_class.var_name: authentication
focal_class.declarator: props
focal_class.modifier: private final
focal_class.original_string: private final ConfigurationProperties props;
focal_class.type: ConfigurationProperties
focal_class.var_name: props
focal_class.declarator: sqlParserEngine
focal_class.modifier: private final
focal_class.original_string: private final ShardingSphereSQLParserEngine sqlParserEngine;
focal_class.type: ShardingSphereSQLParserEngine
focal_class.var_name: sqlParserEngine
focal_class.declarator: executorKernel
focal_class.modifier: private final
focal_class.original_string: private final ExecutorKernel executorKernel;
focal_class.type: ExecutorKernel
focal_class.var_name: executorKernel
focal_class.file: shardingsphere-infra/shardingsphere-infra-context/src/main/java/org/apache/shardingsphere/infra/context/schema/SchemaContextsBuilder.java
focal_class.identifier: SchemaContextsBuilder
focal_class.class_method_signature: SchemaContextsBuilder.SchemaContextsBuilder(final DatabaseType databaseType, final Map<String, Map<String, DataSource>> dataSources,
                                   final Map<String, Collection<RuleConfiguration>> ruleConfigs, final Properties props)
focal_class.full_signature: public  SchemaContextsBuilder(final DatabaseType databaseType, final Map<String, Map<String, DataSource>> dataSources,
                                   final Map<String, Collection<RuleConfiguration>> ruleConfigs, final Properties props)
focal_class.identifier: SchemaContextsBuilder
focal_class.modifiers: public
focal_class.parameters: (final DatabaseType databaseType, final Map<String, Map<String, DataSource>> dataSources,
                                   final Map<String, Collection<RuleConfiguration>> ruleConfigs, final Properties props)
focal_class.signature:  SchemaContextsBuilder(final DatabaseType databaseType, final Map<String, Map<String, DataSource>> dataSources,
                                   final Map<String, Collection<RuleConfiguration>> ruleConfigs, final Properties props)
focal_class.class_method_signature: SchemaContextsBuilder.SchemaContextsBuilder(final DatabaseType databaseType, final Map<String, Map<String, DataSource>> dataSources,
                                   final Map<String, Collection<RuleConfiguration>> ruleConfigs, final Authentication authentication, final Properties props)
focal_class.full_signature: public  SchemaContextsBuilder(final DatabaseType databaseType, final Map<String, Map<String, DataSource>> dataSources,
                                   final Map<String, Collection<RuleConfiguration>> ruleConfigs, final Authentication authentication, final Properties props)
focal_class.identifier: SchemaContextsBuilder
focal_class.modifiers: public
focal_class.parameters: (final DatabaseType databaseType, final Map<String, Map<String, DataSource>> dataSources,
                                   final Map<String, Collection<RuleConfiguration>> ruleConfigs, final Authentication authentication, final Properties props)
focal_class.signature:  SchemaContextsBuilder(final DatabaseType databaseType, final Map<String, Map<String, DataSource>> dataSources,
                                   final Map<String, Collection<RuleConfiguration>> ruleConfigs, final Authentication authentication, final Properties props)
focal_class.class_method_signature: SchemaContextsBuilder.build()
focal_class.full_signature: public SchemaContexts build()
focal_class.identifier: build
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: SchemaContexts
focal_class.signature: SchemaContexts build()
focal_class.class_method_signature: SchemaContextsBuilder.createSchema(final String schemaName)
focal_class.full_signature: private ShardingSphereSchema createSchema(final String schemaName)
focal_class.identifier: createSchema
focal_class.modifiers: private
focal_class.parameters: (final String schemaName)
focal_class.return: ShardingSphereSchema
focal_class.signature: ShardingSphereSchema createSchema(final String schemaName)
focal_class.class_method_signature: SchemaContextsBuilder.createMetaData(final String schemaName, final Map<String, DataSource> dataSourceMap, final Collection<ShardingSphereRule> rules)
focal_class.full_signature: private ShardingSphereMetaData createMetaData(final String schemaName, final Map<String, DataSource> dataSourceMap, final Collection<ShardingSphereRule> rules)
focal_class.identifier: createMetaData
focal_class.modifiers: private
focal_class.parameters: (final String schemaName, final Map<String, DataSource> dataSourceMap, final Collection<ShardingSphereRule> rules)
focal_class.return: ShardingSphereMetaData
focal_class.signature: ShardingSphereMetaData createMetaData(final String schemaName, final Map<String, DataSource> dataSourceMap, final Collection<ShardingSphereRule> rules)
focal_class.class_method_signature: SchemaContextsBuilder.getDatabaseAccessConfigurationMap(final Map<String, DataSource> dataSourceMap)
focal_class.full_signature: private Map<String, DatabaseAccessConfiguration> getDatabaseAccessConfigurationMap(final Map<String, DataSource> dataSourceMap)
focal_class.identifier: getDatabaseAccessConfigurationMap
focal_class.modifiers: private
focal_class.parameters: (final Map<String, DataSource> dataSourceMap)
focal_class.return: Map<String, DatabaseAccessConfiguration>
focal_class.signature: Map<String, DatabaseAccessConfiguration> getDatabaseAccessConfigurationMap(final Map<String, DataSource> dataSourceMap)
focal_class.class_method_signature: SchemaContextsBuilder.createCachedDatabaseMetaData(final Map<String, DataSource> dataSources)
focal_class.full_signature: private Optional<CachedDatabaseMetaData> createCachedDatabaseMetaData(final Map<String, DataSource> dataSources)
focal_class.identifier: createCachedDatabaseMetaData
focal_class.modifiers: private
focal_class.parameters: (final Map<String, DataSource> dataSources)
focal_class.return: Optional<CachedDatabaseMetaData>
focal_class.signature: Optional<CachedDatabaseMetaData> createCachedDatabaseMetaData(final Map<String, DataSource> dataSources)
focal_method.body: public SchemaContexts build() throws SQLException {
          Map<String, ShardingSphereSchema> schemas = new LinkedHashMap<>(ruleConfigs.size(), 1);
          for (String each : ruleConfigs.keySet()) {
              schemas.put(each, createSchema(each));
          }
          return new StandardSchemaContexts(schemas, sqlParserEngine, executorKernel, authentication, props, databaseType);
      }
focal_method.class_method_signature: SchemaContextsBuilder.build()
focal_method.full_signature: public SchemaContexts build()
focal_method.identifier: build
focal_method.invocations: size keySet put createSchema
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: SchemaContexts
focal_method.signature: SchemaContexts build()