@Test void label() { SequenceExpression<Integer> sut1 = new SequenceExpression<>(intSequence); SequenceExpression<Integer> sut2 = new SequenceExpression<>(intSequence); when(scope.newLabel()).thenReturn(563L).thenReturn(564L); String label1 = sut1.label(scope); String label2 = sut1.label(scope); String label3 = sut2.label(scope); assertThat(label1, is("sequence_563")); assertThat(label2, is("sequence_563")); assertThat(label3, is("sequence_564")); }
@Override public String label(Scope scope) { return labelGenerator.label(scope); }
SequenceExpression implements TypedExpression<T> { @Override public String label(Scope scope) { return labelGenerator.label(scope); } }
SequenceExpression implements TypedExpression<T> { @Override public String label(Scope scope) { return labelGenerator.label(scope); } SequenceExpression(Sequence<T> sequence); }
SequenceExpression implements TypedExpression<T> { @Override public String label(Scope scope) { return labelGenerator.label(scope); } SequenceExpression(Sequence<T> sequence); @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(); T single(); }
SequenceExpression implements TypedExpression<T> { @Override public String label(Scope scope) { return labelGenerator.label(scope); } SequenceExpression(Sequence<T> sequence); @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(); T single();  }