Junit5: Provide Kotlin extension function for ArgumentsAccessor

Created on 23 Apr 2018  路  7Comments  路  Source: junit-team/junit5

When using JUnit 5.2.0-RC1 with Kotlin, you have to write e.g.:

val date = args.get(2, LocalDate::class.java)

It would be smoother when one could write (as e.g. in https://github.com/junit-team/junit5/blob/r5.2.0-RC1/junit-jupiter-api/src/main/kotlin/org/junit/jupiter/api/Assertions.kt#L96):

val date = args.get<LocalDate>(2)
Kotlin parameterized tests enhancement up-for-grabs

All 7 comments

Hello!
I would like to work on this issue if it is not a problem and be part of the contribution.

Hello, I'm also interested in working on this issue! How can we proceed?

Let's decide if/how to implement it before getting started. Having said that, I'm all for it.

Can this be implemented as an extension function?

@hutaidavid @WilderPereira Are you still interested in working on this issue?

Yes, I am!

Well then, go for it! 馃檪

_in progress_ by @WilderPereira

Was this page helpful?
0 / 5 - 0 ratings