Menu

Can't get sql data type from MockResultSet

2009-03-22
2013-04-15
  • Nobody/Anonymous

    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

     
    • Alwin Ibba

      Alwin Ibba - 2009-03-23

      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

       

Log in to post a comment.

MongoDB Logo MongoDB