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

row(index).column("ABC") and row().row().row().column("ABC") always referring to row 0 itself #290

Open
bhargavkumar-65 opened this issue Oct 27, 2023 · 0 comments

Comments

@bhargavkumar-65
Copy link

Hi,
I am trying to read the value at ROW index 3 and column ABC, when i execute below code, getting below error message.
Source source = new Source("jdbc:sqlserver://localhost;database=KMSupportShipping_Office;encrypt=true;trustServerCertificate=true;integratedSecurity=True","","");

      String Query1 = " select * from bu_customer where id='I15910'";
      Table TABLE_BU_Customer = new Table(source, "bu_customer");
              assertThat(TABLE_BU_Customer)
                      .row(3)
                      .column(7)
                              .value().isEqualTo("700");

Error:

java.lang.AssertionError: [Value at index 0 of Column at index 7 (column name : AMOUNT) of bu_customer table]
Expecting:
<"100000.0000">
to be equal to:
<"700">

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