I haven't found a way to escape the ,
character in CSV resource file that is used by CsvFileSource
junit5
annotation. Consequently, any string containing comma is cut in half and the second part is never used.
Is there some workaround for this?
EDIT: The original question was not complete. The problem is I have commas and double quotes in my resource. Parametrized tests deal with the quotes but not with both.
Example CSV line:
5,10,5,53,"</identity/partners?limit=5&cursor=5>; rel="prev", </identity/partners?limit=5&cursor=15>; rel="next""
Quotes are escaped correctly but only until a wild comma appears (that is the algorithm I might guess).
So the resulting assert looks like this:
"Link" was not "\"</identity/partners?limit=5&cursor=5>; rel=\"prev\"", was "</identity/partners?limit=5&cursor=5>; rel="prev", </identity/partners?limit=5&cursor=15>; rel="next""