test_class.declarator: DATASOURCE_NAME = "ds"
test_class.modifier: private static final
test_class.original_string: private static final String DATASOURCE_NAME = "ds";
test_class.type: String
test_class.var_name: DATASOURCE_NAME
test_class.declarator: shardingRule
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ShardingRule shardingRule;
test_class.type: ShardingRule
test_class.var_name: shardingRule
test_class.declarator: dataSourcesMetaData
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private DataSourcesMetaData dataSourcesMetaData;
test_class.type: DataSourcesMetaData
test_class.var_name: dataSourcesMetaData
test_class.declarator: shardingInstanceBroadcastRoutingEngine
test_class.modifier: private
test_class.original_string: private ShardingInstanceBroadcastRoutingEngine shardingInstanceBroadcastRoutingEngine;
test_class.type: ShardingInstanceBroadcastRoutingEngine
test_class.var_name: shardingInstanceBroadcastRoutingEngine
test_class.file: shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-route/src/test/java/org/apache/shardingsphere/sharding/route/engine/type/broadcast/ShardingInstanceBroadcastRoutingEngineTest.java
test_class.identifier: ShardingInstanceBroadcastRoutingEngineTest
test_case.body: @Test
      public void assertRoute() {
          RouteContext routeContext = new RouteContext();
          shardingInstanceBroadcastRoutingEngine.route(routeContext, shardingRule);
          assertThat(routeContext.getRouteUnits().size(), is(1));
          assertThat(routeContext.getRouteUnits().iterator().next().getDataSourceMapper().getActualName(), is(DATASOURCE_NAME));
      }
test_case.class_method_signature: ShardingInstanceBroadcastRoutingEngineTest.assertRoute()
test_case.full_signature: @Test public void assertRoute()
test_case.identifier: assertRoute
test_case.invocations: route assertThat size getRouteUnits is assertThat getActualName getDataSourceMapper next iterator getRouteUnits is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void assertRoute()
focal_class.declarator: dataSourcesMetaData
focal_class.modifier: private final
focal_class.original_string: private final DataSourcesMetaData dataSourcesMetaData;
focal_class.type: DataSourcesMetaData
focal_class.var_name: dataSourcesMetaData
focal_class.file: shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-route/src/main/java/org/apache/shardingsphere/sharding/route/engine/type/broadcast/ShardingInstanceBroadcastRoutingEngine.java
focal_class.identifier: ShardingInstanceBroadcastRoutingEngine
focal_class.interfaces: implements ShardingRouteEngine
focal_class.class_method_signature: ShardingInstanceBroadcastRoutingEngine.route(final RouteContext routeContext, final ShardingRule shardingRule)
focal_class.full_signature: @Override public void route(final RouteContext routeContext, final ShardingRule shardingRule)
focal_class.identifier: route
focal_class.modifiers: @Override public
focal_class.parameters: (final RouteContext routeContext, final ShardingRule shardingRule)
focal_class.return: void
focal_class.signature: void route(final RouteContext routeContext, final ShardingRule shardingRule)
focal_method.body: @Override
      public void route(final RouteContext routeContext, final ShardingRule shardingRule) {
          for (String each : shardingRule.getDataSourceNames()) {
              if (dataSourcesMetaData.getAllInstanceDataSourceNames().contains(each)) {
                  routeContext.getRouteUnits().add(new RouteUnit(new RouteMapper(each, each), Collections.emptyList()));
              }
          }
      }
focal_method.class_method_signature: ShardingInstanceBroadcastRoutingEngine.route(final RouteContext routeContext, final ShardingRule shardingRule)
focal_method.full_signature: @Override public void route(final RouteContext routeContext, final ShardingRule shardingRule)
focal_method.identifier: route
focal_method.invocations: getDataSourceNames contains getAllInstanceDataSourceNames add getRouteUnits emptyList
focal_method.modifiers: @Override public
focal_method.parameters: (final RouteContext routeContext, final ShardingRule shardingRule)
focal_method.return: void
focal_method.signature: void route(final RouteContext routeContext, final ShardingRule shardingRule)