guenther
03/16/2018, 6:22 AMClass::function.name
literal a compile-time-constant?
This would really help in situations where a name for an annotation is actual a function-name like in JUnit-Parameterized-Tests:
object CalculatorTest {
@ParameterizedTest
// @MethodSource(value = CalculatorTest::multiplyNumberProvider.name) // HERE IT WOULD HELP
@MethodSource(value = "multiplyNumberProvider") // this sucks
fun `multiplication of two numbers (with params)`(num1: Int, num2: Int, expected: Int) {
...
}
fun multiplyNumberProvider(): Stream<Arguments> = ...
}
elizarov
03/16/2018, 7:17 AMguenther
03/16/2018, 9:15 AM