productIds type is List<Long>. so do that, productIds.map { it.toString() }.toTypedArray() must be calledβ¦
r
Riccardo Lippolis
07/10/2024, 9:00 AM
ah yeah, in that case
joinToString
is shorter π
u
μ€λν
07/10/2024, 9:02 AM
too sad open eye crying laughing
k
kqr
07/10/2024, 9:23 AM
however is it the same in the end?
kqr
07/10/2024, 9:32 AM
looks like it is as spring accepts comma delimited values too
j
Jacob
07/16/2024, 10:54 AM
I recommend using joinToString if you want to test comma separated parameters.
Use params multiple times if you want to test ?productIds=42&productIds=49.
Both are valid forms of putting a list in query params, and you should be explicit about which form you're testing