row(index).column("ABC") and row().row().row().column("ABC") always referring to row 0 itself
- Lenguaje dominante
- Java
- Estrellas
- 130
- Forks
- 21
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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">
Guía de contribución
Línea de trabajo
No se indica ningún archivo fuente ni ninguna prueba. Reproduce el problema con Table, row(3) y column(7) usando la consulta proporcionada; después, sigue cómo se gestiona la selección de filas y verifica que la assertion indique el índice 3 en lugar del índice 0 cuando se encuentre la fila solicitada.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java, sql
- Área
- databases
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100