SPISQLExecutionHook implements SQLExecutionHook { @Override public void finishSuccess() { for (SQLExecutionHook each : sqlExecutionHooks) { each.finishSuccess(); } }  @Override void start(final RouteUnit routeUnit, final DataSourceMetaData dataSourceMetaData, final boolean isTrunkThread, final Map<String, Object> shardingExecuteDataMap); @Override void finishSuccess(); @Override void finishFailure(final Exception cause);  }
@Test public void assertFinishSuccess() { spiSQLExecutionHook.finishSuccess(); assertTrue(SQLExecutionHookFixture.containsAction("finishSuccess")); }