Is there anyway to get the sql data type for the column from mockResultSet,
I tried : int columnType = resultSet.getMetaData().getColumnType(1);
The mockResultset metaData seems only returns 1111 as the type int,
the documentation said it doesn't care the sql type, so is there any other way to get the sql type? I need to use the column type for the test cases.
Thanks
edi
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Mockrunner does not implement this feature. If you want your tested code to get a specific column type you have to set/prepare in on the MockResultSetMetaData in your tests.
Regards,
Alwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi:
Is there anyway to get the sql data type for the column from mockResultSet,
I tried : int columnType = resultSet.getMetaData().getColumnType(1);
The mockResultset metaData seems only returns 1111 as the type int,
the documentation said it doesn't care the sql type, so is there any other way to get the sql type? I need to use the column type for the test cases.
Thanks
edi
Mockrunner does not implement this feature. If you want your tested code to get a specific column type you have to set/prepare in on the MockResultSetMetaData in your tests.
Regards,
Alwin