ShardingTableBroadcastRoutingEngine implements ShardingRouteEngine { @Override public void route(final RouteContext routeContext, final ShardingRule shardingRule) { for (String each : getLogicTableNames()) { routeContext.getRouteUnits().addAll(getAllRouteUnits(shardingRule, each)); } }  @Override void route(final RouteContext routeContext, final ShardingRule shardingRule);  }
@Test public void assertRouteForNormalDDL() { DDLStatement ddlStatement = mock(DDLStatement.class); when(sqlStatementContext.getSqlStatement()).thenReturn(ddlStatement); RouteContext routeContext = new RouteContext(); tableBroadcastRoutingEngine.route(routeContext, shardingRule); assertRouteContext(routeContext); }