@Test void label() { long labelNum = RandomUtils.nextLong(1, 400); when(scope.newLabel()).thenReturn(labelNum); TupleBuilder1<Long> sut = TupleBuilder.tuple(SalespersonRow::salespersonId); String result = sut.label(scope); assertThat(result, is("tuple_" + labelNum)); }
public String label(Scope scope) { return labelGenerator.label(scope); }
TupleBuilder { public String label(Scope scope) { return labelGenerator.label(scope); } }
TupleBuilder { public String label(Scope scope) { return labelGenerator.label(scope); }  }
TupleBuilder { public String label(Scope scope) { return labelGenerator.label(scope); }  String label(Scope scope); String sql(Scope scope); Stream<Object> args(Scope scope); @SuppressWarnings("SameReturnValue") Precedence precedence(); static TupleBuilder1<T1> tuple(Function1<R,T1> methodRef); static TupleBuilder1<T1> tuple(FunctionOptional1<R,T1> methodRef); static TupleBuilder1<T1> tuple(String alias, Function1<R,T1> methodRef); static TupleBuilder1<T1> tuple(String alias, FunctionOptional1<R,T1> methodRef); static TupleBuilder1<T1> tuple(Alias<R> alias, Function1<R,T1> methodRef); static TupleBuilder1<T1> tuple(Alias<R> alias, FunctionOptional1<R,T1> methodRef); }
TupleBuilder { public String label(Scope scope) { return labelGenerator.label(scope); }  String label(Scope scope); String sql(Scope scope); Stream<Object> args(Scope scope); @SuppressWarnings("SameReturnValue") Precedence precedence(); static TupleBuilder1<T1> tuple(Function1<R,T1> methodRef); static TupleBuilder1<T1> tuple(FunctionOptional1<R,T1> methodRef); static TupleBuilder1<T1> tuple(String alias, Function1<R,T1> methodRef); static TupleBuilder1<T1> tuple(String alias, FunctionOptional1<R,T1> methodRef); static TupleBuilder1<T1> tuple(Alias<R> alias, Function1<R,T1> methodRef); static TupleBuilder1<T1> tuple(Alias<R> alias, FunctionOptional1<R,T1> methodRef);  }