You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We had a little issue at work today using a parameterized test runner which was given characters as arguments which happened to be escape sequences.
The issue happens when using a name attribute in the @parameter annotation. For example:
@Parameter(name = "This won't display properly when given some special characters: {0}")
publicstaticCollection<Character[]> parameters() {
returnArrays.asList(newCharacter[][]{
{ '\0' }
});
}
The test does not fail but it creates issues through the rest of our tool chain.
We are using JUnit 4.11 but the issue exists in JUnit 4.12 too. I happened to make a small Maven project to illustrate the problem and I also made a patch for JUnit 4.11 and 4.12. Feel free to use everything.