DbmsOperationalHandlerBuilderImpl implements DbmsOperationalHandlerBuilder { @Override public DbmsOperationalHandlerBuilder withInsertHandler(SqlTriConsumer<Dbms, Connection, HasGeneratedKeys> insertHandler) { this.insertHandler = requireNonNull(insertHandler); return this; } DbmsOperationalHandlerBuilderImpl(ConnectionPoolComponent connectionPoolComponent, TransactionComponent transactionComponent); @Override DbmsOperationalHandlerBuilder withGeneratedKeysHandler(SqlBiConsumer<PreparedStatement, LongConsumer> generatedKeysHandler); @Override DbmsOperationalHandlerBuilder withConfigureSelectPreparedStatement(SqlConsumer<PreparedStatement> configurator); @Override DbmsOperationalHandlerBuilder withConfigureSelectResultSet(SqlConsumer<ResultSet> configurator); @Override DbmsOperationalHandlerBuilder withInsertHandler(SqlTriConsumer<Dbms, Connection, HasGeneratedKeys> insertHandler); @Override DbmsOperationHandler build();  }
@Test void withInsertHandler() { assertThrows(NullPointerException.class, () -> instance.withInsertHandler(null)); assertDoesNotThrow(() -> instance.withInsertHandler((dbms, connection, hasGeneratedKeys) -> {})); }