SingleColumnSqlAdapter implements SqlAdapter<String> { @Override public SqlFunction<ResultSet, String> entityMapper() { return in -> in.getString(column); } SingleColumnSqlAdapter(
        @Config(name = "temp.dbms", value = "") final String dbms,
        @Config(name = "temp.schema", value = "") final String schema,
        @Config(name = "temp.table", value = "") final String table,
        @Config(name = "temp.column", value = "") final String column
    ); @Override TableIdentifier<String> identifier(); @Override SqlFunction<ResultSet, String> entityMapper(); @Override SqlFunction<ResultSet, String> entityMapper(int offset);  }
@Test void entityMapper() throws SQLException { final String expected = "A"; when(resultSet.getString(COLUMN)).thenReturn(expected); final SqlFunction<ResultSet, String> mapper = INSTANCE.entityMapper(); final String actual = mapper.apply(resultSet); assertEquals(expected, actual); }
@Test void testEntityMapper() throws SQLException { final String expected = "A"; when(resultSet.getString(COLUMN)).thenReturn(expected); final SqlFunction<ResultSet, String> mapper = INSTANCE.entityMapper(7); final String actual = mapper.apply(resultSet); assertEquals(expected, actual); }