@Test void label() { when(scope.newLabel()).thenReturn(5L); OlapFunction<Integer> sut = new OlapFunction<>("foo", TypeToken.of(Integer.class), arg1); String result = sut.label(scope); assertThat(result, is("foo_5")); }
String label(Scope scope) { return labelGenerator.label(scope); }
OlapFunction { String label(Scope scope) { return labelGenerator.label(scope); } }
OlapFunction { String label(Scope scope) { return labelGenerator.label(scope); } OlapFunction(String functionName, TypeToken<T> type, TypedExpression<?>... arguments); }
OlapFunction { String label(Scope scope) { return labelGenerator.label(scope); } OlapFunction(String functionName, TypeToken<T> type, TypedExpression<?>... arguments);  }
OlapFunction { String label(Scope scope) { return labelGenerator.label(scope); } OlapFunction(String functionName, TypeToken<T> type, TypedExpression<?>... arguments);   }