DbmsOperationalHandlerBuilderImpl implements DbmsOperationalHandlerBuilder { @Override public DbmsOperationalHandlerBuilder withGeneratedKeysHandler(SqlBiConsumer<PreparedStatement, LongConsumer> generatedKeysHandler) { this.generatedKeysHandler = requireNonNull(generatedKeysHandler); 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 withGeneratedKeysHandler() { assertThrows(NullPointerException.class, () -> instance.withGeneratedKeysHandler(null)); assertDoesNotThrow(() -> instance.withGeneratedKeysHandler(((preparedStatement, longConsumer) -> {}))); }