@Test void args() { when(expression.args(scope)).thenReturn(Stream.of(1, 2)); CastBuilder<String> builder = new CastBuilder<>(expression); TypedExpression<LocalDate> sut = builder.asDate(); Object[] result = sut.args(scope).toArray(); assertThat(result, arrayContaining(1, 2)); verifyNoMoreInteractions(expression, scope, dialect, database, resultSet); }
@Override public Stream<Object> args(Scope scope) { return from.args(scope); }
CastExpression implements TypedExpression<T> { @Override public Stream<Object> args(Scope scope) { return from.args(scope); } }
CastExpression implements TypedExpression<T> { @Override public Stream<Object> args(Scope scope) { return from.args(scope); } CastExpression(TypedExpression<F> from, DataType<T> to, DbTypeId<T> toType, BiFunction<DbType<T>,Database,String> toSql); }
CastExpression implements TypedExpression<T> { @Override public Stream<Object> args(Scope scope) { return from.args(scope); } CastExpression(TypedExpression<F> from, DataType<T> to, DbTypeId<T> toType, BiFunction<DbType<T>,Database,String> toSql); @Override String label(Scope scope); @Override RowMapper<T> rowMapper(Scope scope, Optional<String> label); @Override TypeToken<T> type(); @Override String sql(Scope scope); @Override Stream<Object> args(Scope scope); @Override Precedence precedence(); @Override String toString(); }
CastExpression implements TypedExpression<T> { @Override public Stream<Object> args(Scope scope) { return from.args(scope); } CastExpression(TypedExpression<F> from, DataType<T> to, DbTypeId<T> toType, BiFunction<DbType<T>,Database,String> toSql); @Override String label(Scope scope); @Override RowMapper<T> rowMapper(Scope scope, Optional<String> label); @Override TypeToken<T> type(); @Override String sql(Scope scope); @Override Stream<Object> args(Scope scope); @Override Precedence precedence(); @Override String toString();  }