Package org.teiid.jdbc

Examples of org.teiid.jdbc.ResultSetImpl


   
    Map<Integer, Integer> params = new HashMap<Integer, Integer>();
    mmcs.outParamIndexMap = params;
    params.put(Integer.valueOf(1), Integer.valueOf(1));
    params.put(Integer.valueOf(2), Integer.valueOf(2));
    ResultSetImpl rs = Mockito.mock(ResultSetImpl.class);
    mmcs.resultSet = rs;
    Mockito.stub(rs.getOutputParamValue(1)).toReturn(null);
    Mockito.stub(rs.getOutputParamValue(2)).toReturn(Boolean.TRUE);
    mmcs.getBoolean(1);
    assertTrue(mmcs.wasNull());
    assertTrue(mmcs.getBoolean(2));
    assertFalse(mmcs.wasNull());
  }
View Full Code Here

TOP

Related Classes of org.teiid.jdbc.ResultSetImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.