Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@FileParameters does not respect quotes around columns in a CSV #167

Open
ticehix128 opened this issue Jan 30, 2020 · 0 comments
Open

@FileParameters does not respect quotes around columns in a CSV #167

ticehix128 opened this issue Jan 30, 2020 · 0 comments

Comments

@ticehix128
Copy link

ticehix128 commented Jan 30, 2020

Version:

v 1.1.1

Contents of file test-cases.csv:

"CASE"
"CASE MULTIPLE WORDS"
"CASE MULTIPLE WORDS, WITH A COMMA"

Test method:


 @FileParameters(("classpath:test-cases.csv"))
  @Test
  public void testCase(final String singleColumnValue) {
      assertTrue(null != singleColumnValue);
  }

Expected:

All cases pass because it is legal and valid to include commas in CSV text if the column is quoted

Actual:

Cases where column contains comma fails with exception:

java.lang.IllegalArgumentException: Number of parameters inside @Parameters annotation doesn't match the number of test method parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant