SPISQLExecutionHook implements SQLExecutionHook { @Override public void finishFailure(final Exception cause) { for (SQLExecutionHook each : sqlExecutionHooks) { each.finishFailure(cause); } }  @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 assertFinishFailure() { spiSQLExecutionHook.finishFailure(null); assertTrue(SQLExecutionHookFixture.containsAction("finishFailure")); }